﻿/* THE AI NEXUS House Ads CSS */

.nexus-ad-slot {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    overflow: hidden;
    position: relative;
    background-color: transparent;
}

.nexus-ad-creative {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #334155;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    color: #f8fafc;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    cursor: pointer;
}

.nexus-ad-creative:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
    text-decoration: none;
    color: #ffffff;
}

.nexus-ad-creative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.nexus-ad-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    box-sizing: border-box;
}

.nexus-ad-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nexus-ad-badge::after {
    content: 'Sponsored';
    background-color: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
}

.nexus-ad-headline {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    color: #ffffff;
}

.nexus-ad-subheadline {
    font-size: 0.875rem;
    color: #cbd5e1;
    margin: 0 0 1.25rem 0;
    line-height: 1.5;
    flex-grow: 1;
}

.nexus-ad-cta {
    display: inline-block;
    background-color: #3b82f6;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-align: center;
    transition: background-color 0.2s;
    margin-top: auto;
    border: none;
}

.nexus-ad-creative:hover .nexus-ad-cta {
    background-color: #2563eb;
}

/* Slot Specific Layouts */

/* 1. Leaderboard (Top/Content Banner) */
.nexus-ad-slot[data-slot='top_banner'] .nexus-ad-creative,
.nexus-ad-slot[data-slot='content_banner'] .nexus-ad-creative {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    flex-direction: row;
}

.nexus-ad-slot[data-slot='top_banner'] .nexus-ad-content,
.nexus-ad-slot[data-slot='content_banner'] .nexus-ad-content {
    flex-direction: row;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 1.5rem;
}

.nexus-ad-slot[data-slot='top_banner'] .nexus-ad-badge,
.nexus-ad-slot[data-slot='content_banner'] .nexus-ad-badge {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    margin: 0;
}

.nexus-ad-slot[data-slot='top_banner'] .nexus-ad-headline,
.nexus-ad-slot[data-slot='content_banner'] .nexus-ad-headline {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.nexus-ad-slot[data-slot='top_banner'] .nexus-ad-subheadline,
.nexus-ad-slot[data-slot='content_banner'] .nexus-ad-subheadline {
    margin: 0;
}

.nexus-ad-slot[data-slot='top_banner'] .nexus-ad-cta,
.nexus-ad-slot[data-slot='content_banner'] .nexus-ad-cta {
    margin-top: 0;
    white-space: nowrap;
}

.nexus-ad-text-wrap {
    flex-grow: 1;
}

/* 2. Skyscraper (Left/Right Sidebar) */
.nexus-ad-slot[data-slot='desktop_left_sidebar'] .nexus-ad-creative,
.nexus-ad-slot[data-slot='desktop_right_sidebar'] .nexus-ad-creative {
    width: 160px;
    height: 600px;
}

.nexus-ad-slot[data-slot='desktop_left_sidebar'] .nexus-ad-content,
.nexus-ad-slot[data-slot='desktop_right_sidebar'] .nexus-ad-content {
    padding: 1.5rem 1rem;
}

.nexus-ad-slot[data-slot='desktop_left_sidebar'] .nexus-ad-headline,
.nexus-ad-slot[data-slot='desktop_right_sidebar'] .nexus-ad-headline {
    font-size: 1.125rem;
}

/* 3. Mobile Banner */
.nexus-ad-slot[data-slot='mobile_banner'] .nexus-ad-creative {
    width: 100%;
    max-width: 320px;
    min-height: 100px;
}

.nexus-ad-slot[data-slot='mobile_banner'] .nexus-ad-content {
    padding: 1rem;
}

.nexus-ad-slot[data-slot='mobile_banner'] .nexus-ad-headline {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.nexus-ad-slot[data-slot='mobile_banner'] .nexus-ad-subheadline {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .nexus-ad-slot[data-slot='desktop_left_sidebar'],
    .nexus-ad-slot[data-slot='desktop_right_sidebar'] {
        display: none !important;
    }
    
    .nexus-ad-slot[data-slot='top_banner'] .nexus-ad-content,
    .nexus-ad-slot[data-slot='content_banner'] .nexus-ad-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .nexus-ad-slot[data-slot='top_banner'] .nexus-ad-badge,
    .nexus-ad-slot[data-slot='content_banner'] .nexus-ad-badge {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 0.5rem;
    }
    
    .nexus-ad-slot[data-slot='top_banner'] .nexus-ad-cta,
    .nexus-ad-slot[data-slot='content_banner'] .nexus-ad-cta {
        width: 100%;
        box-sizing: border-box;
    }
}
