/* AI Event Ticker Styles */
.ai-ticker-container {
    position: fixed;
    top: 80px; /* Below the fixed header */
    left: 0;
    right: 0;
    height: 40px;
    z-index: 40;
    overflow: hidden;
    background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 25%, #3b82f6 50%, #1e3a8a 75%, #0f172a 100%);
    border-bottom: 1px solid #374151;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.ai-ticker-wrapper {
    height: 100%;
    overflow: hidden;
    position: relative;
}

.ai-ticker-content {
    display: flex;
    align-items: center;
    height: 100%;
    animation: ai-ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

.ai-ticker-item {
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    animation: ai-pulse 4s ease-in-out infinite;
}

@keyframes ai-pulse {
    0%, 100% {
        opacity: 0.9;
    }
    50% {
        opacity: 1;
    }
}

.ai-ticker-icon {
    margin-right: 8px;
    font-size: 16px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    color: #00d4ff;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.ai-ticker-text {
    color: #e0f2fe;
    font-family: 'Figtree', sans-serif;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

.ai-ticker-separator {
    margin-left: 20px;
    color: #00d4ff;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 212, 255, 0.4);
}

.ai-ticker-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

.ai-ticker-link:hover {
    color: #ffffff;
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

/* Calendar Button Styling */
.ai-ticker-button {
    background: linear-gradient(90deg, #00d4ff, #3b82f6);
    color: white !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: 1px solid #00d4ff;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.4), 0 0 15px rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

.ai-ticker-button:hover {
    background: linear-gradient(90deg, #3b82f6, #00d4ff) !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.6), 0 0 20px rgba(0, 212, 255, 0.3);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

/* AI Glow Effect */
.ai-ticker-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #00d4ff 25%, #3b82f6 50%, #00d4ff 75%, transparent 100%);
    opacity: 0.8;
    animation: ai-glow 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Scroll Animation */
@keyframes ai-ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Glow Animation */
@keyframes ai-glow {
    0%, 100% {
        opacity: 0.4;
        box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-ticker-container {
        top: 70px; /* Adjust for mobile header */
        height: 35px;
    }
    
    .ai-ticker-item {
        padding: 0 15px;
        font-size: 12px;
    }
    
    .ai-ticker-icon {
        font-size: 14px;
        margin-right: 6px;
    }
    
    .ai-ticker-separator {
        margin-left: 15px;
    }
}

/* Pause on hover */
.ai-ticker-container:hover .ai-ticker-content {
    animation-play-state: paused;
}

/* Margin Adjustments for Content */
/* Desktop: 80px header + 40px ticker = 120px */
/* Mobile: 70px header + 35px ticker = 105px */

/* Override existing padding-top for all pages */
body {
    padding-top: 120px !important;
}

/* Specific page adjustments */
.pt-20 {
    padding-top: 5rem !important; /* 80px */
}

.md\:pt-32 {
    padding-top: 8rem !important; /* 128px */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 105px !important;
    }
    
    .pt-20 {
        padding-top: 2.5rem !important; /* 40px - reduced from 70px */
    }
    
    .md\:pt-32 {
        padding-top: 3.75rem !important; /* 60px - reduced from 105px */
    }
}

/* Ensure main content areas have proper spacing */
#primary,
.site-main,
main {
    margin-top: 0 !important;
}

/* Hero sections and other top sections */
section:first-of-type {
    margin-top: 0 !important;
}
