/* --- COSMIC ADS SYSTEM --- */
.cosmic-ad-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.cosmic-ad-banner {
    width: 100%;
    min-height: 120px;
    /* Standard leaderboard height + padding */
    background: rgba(20, 20, 30, 0.6);
    border: 1px dashed rgba(0, 229, 255, 0.3);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.cosmic-ad-banner:hover {
    border-color: rgba(255, 0, 128, 0.5);
    background: rgba(20, 20, 30, 0.8);
}

.ad-label {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.6rem;
    color: #555;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 5px;
    border-radius: 3px;
}

.ad-content {
    text-align: center;
    color: #aaa;
    width: 100%;
    height: 100%;
    display: flex;
    /* Centering for placeholder text */
    align-items: center;
    justify-content: center;
}

/* For actual images/banners */
.ad-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- GRID AD CARD --- */
.card-ad {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 140, 0, 0.05)) !important;
    border-color: rgba(255, 215, 0, 0.3) !important;
}

.card-ad:hover {
    border-color: #ffd700 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4) !important;
    transform: translateY(-5px);
}

.card-ad h2 {
    color: #ffd700 !important;
}

.card-ad .icon {
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

/* Placeholder Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.ad-placeholder-anim {
    animation: shimmer 3s infinite linear;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
    background-size: 1000px 100%;
}