/* ============================================
   SIDE SPLASH ADS PANEL
   ============================================ */

.side-ads-panel {
    position: fixed;
    right: 20px;
    top: 120px;
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 9999;
    pointer-events: none;
}

.side-ad-card {
    position: relative;
    background: var(--bg-surface);
    border: 2px solid var(--border-emphasis);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    pointer-events: auto;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.side-ad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(212, 175, 112, 0.3);
    border-color: var(--accent-gold);
}

.side-ad-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    color: var(--accent-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
    font-size: 0.9rem;
}

.side-ad-close:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    transform: rotate(90deg);
}

.side-ad-link {
    display: block;
    text-decoration: none;
}

.side-ad-image,
.side-ad-video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.side-ad-card:hover .side-ad-image,
.side-ad-card:hover .side-ad-video {
    transform: scale(1.05);
}

/* Placeholder styling for men's ad */
.side-ad-placeholder {
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-hover) 100%);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-subtle);
}

/* Hide ads on smaller screens */
@media (max-width: 1400px) {
    .side-ads-panel {
        right: 10px;
        width: 240px;
    }
}

@media (max-width: 1200px) {
    .side-ads-panel {
        display: none;
    }
}

/* Hide side ads when not on hero page */
.quiz-section.active ~ .side-ads-panel,
.results-section.active ~ .side-ads-panel,
.info-section.active ~ .side-ads-panel {
    display: none;
}

/* Smooth fade out animation when closing */
.side-ad-card.closing {
    animation: fadeOutRight 0.3s ease-out forwards;
}

@keyframes fadeOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100px);
        opacity: 0;
    }
}
