/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Wrestling Colors (Unified Theme) */
    --wrestling-primary: #f59e0b;
    --wrestling-secondary: #fbbf24;
    --wrestling-accent: #fde68a;
    --wrestling-dark: #d97706;
    --wrestling-gold: #ffd700;
    
    /* Glass UI Colors */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-primary: 'Orbitron', monospace;
    --font-secondary: 'Roboto', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

body {
    font-family: var(--font-secondary);
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Effects */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.05), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.1), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-200px); }
}

/* Header */
.header {
    text-align: center;
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 10;
}

.main-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.wrestling-text {
    background: linear-gradient(45deg, var(--wrestling-primary), var(--wrestling-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-text {
    background: linear-gradient(45deg, var(--wrestling-secondary), var(--wrestling-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    font-weight: 300;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 10;
}

/* News Sections */
.news-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--spacing-lg);
    box-shadow: 0 8px 32px var(--glass-shadow);
    min-height: 600px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wrestling-section {
    border-left: 4px solid var(--wrestling-primary);
}

.wrestling-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--wrestling-primary), var(--wrestling-gold));
}

.news-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--glass-border);
}

.brand-logo h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.wrestling-logo h2 {
    color: var(--wrestling-primary);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.brand-accent {
    width: 40px;
    height: 3px;
    margin-top: var(--spacing-xs);
    border-radius: 2px;
    background: linear-gradient(90deg, var(--wrestling-primary), var(--wrestling-gold));
}

.section-stats {
    text-align: right;
}

.news-count {
    display: block;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.raw-section .news-count {
    color: var(--raw-primary);
}

.smackdown-section .news-count {
    color: var(--smackdown-primary);
}

.news-label {
    font-size: 0.9rem;
    opacity: 0.7;
}


/* News Container */
.news-container {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--glass-border) transparent;
}

.news-container::-webkit-scrollbar {
    width: 6px;
}

.news-container::-webkit-scrollbar-track {
    background: transparent;
}

.news-container::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    gap: var(--spacing-md);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top: 3px solid var(--raw-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.smackdown-section .spinner {
    border-top-color: var(--smackdown-primary);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* News Articles */
.news-article {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.news-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: all 0.3s ease;
}

.raw-section .news-article::before {
    background: var(--raw-primary);
}

.smackdown-section .news-article::before {
    background: var(--smackdown-primary);
}

.news-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.news-article:hover::before {
    width: 8px;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
    color: white;
}

.article-summary {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

.article-source {
    font-weight: 500;
}

.article-time {
    font-style: italic;
}

/* Footer */
.footer {
    text-align: center;
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
    border-top: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.social-links {
    margin-top: var(--spacing-sm);
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.social-link {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    
    .news-section {
        padding: var(--spacing-md);
    }
    
    .section-header {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 0 var(--spacing-sm);
    }
    
    .news-section {
        padding: var(--spacing-sm);
    }
    
    .main-title {
        font-size: 2rem;
    }
}

/* Video Card Styles */
.video-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px; /* Match news-section border-radius */
    padding: var(--spacing-lg); /* Match news-section padding */
    box-shadow: 0 8px 32px var(--glass-shadow);
    position: relative;
    overflow: hidden;
    grid-column: 1 / -1; /* Make it span across the grid */
    max-width: 900px; /* Limit its width */
    margin: var(--spacing-lg) auto; /* Center it with vertical spacing */
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--raw-primary), var(--smackdown-primary)); /* Blend of Raw and SmackDown colors */
    border-radius: 20px 20px 0 0;
}

.video-card .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px; /* Slightly smaller border-radius for inner video */
}

.video-card .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.video-card .video-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    text-align: center;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.video-card .video-description {
    font-size: 1rem;
    opacity: 0.8;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

@media (max-width: 768px) {
    .video-card {
        padding: var(--spacing-md);
        margin: var(--spacing-md) auto;
    }
    .video-card .video-title {
        font-size: 1.2rem;
    }
}
