/* FootballX Mockup-Accurate CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.4;
}

/* Header */
.header {
    background-color: #1a1a1a;
    color: white;
    padding: 10px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #dc3545;
}

.nav-menu {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-right: 1px solid #666;
}

.nav-menu a:last-child {
    border-right: none;
}

.nav-menu a:hover {
    color: #dc3545;
}

/* Main Layout Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 20px;
}

/* Left Sidebar - Narrow like in mockups */
.left-sidebar {
    width: 200px;
    flex-shrink: 0;
}

/* Main Content Area - Takes most width */
.main-content {
    flex: 1;
    background: white;
}

/* Sidebar Items */
.sidebar-item {
    margin-bottom: 20px;
    border: 2px solid #ccc;
    background: white;
}

.adsense-placeholder {
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #666;
    border: 2px solid #000;
    background: white;
}

.youtube-placeholder {
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #666;
    border: 2px solid #000;
    background: white;
    cursor: pointer;
}

.youtube-placeholder:hover {
    background: #f0f0f0;
}

/* Hero Article */
.hero-article {
    margin-bottom: 30px;
}

.hero-article h1 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.hero-article .date {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.hero-article img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 15px;
}

.hero-article .content {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* News Sections */
.news-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #dc3545;
}

/* Category Navigation (for homepage) */
.category-nav {
    background: #dc3545;
    color: white;
    padding: 10px;
    margin-bottom: 20px;
}

.category-nav h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.category-nav ul {
    list-style: none;
}

.category-nav li {
    margin-bottom: 5px;
}

.category-nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.category-nav a:hover {
    text-decoration: underline;
}

/* Article Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.article-card {
    background: white;
    border: 1px solid #ddd;
    overflow: hidden;
}

.article-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.article-card-content {
    padding: 10px;
}

.article-card h4 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.3;
}

.article-card h4 a {
    color: #1a1a1a;
    text-decoration: none;
}

.article-card h4 a:hover {
    color: #dc3545;
}

.article-card .excerpt {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.article-card .category {
    font-size: 11px;
    color: #dc3545;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* Related News Section */
.related-news {
    margin-top: 30px;
}

.related-news h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #1a1a1a;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .left-sidebar {
        width: 100%;
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-item {
        display: none;
    }
    
    .sidebar-item:first-child,
    .sidebar-item:nth-child(2) {
        display: block;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-menu a {
        border-right: none;
        border-bottom: 1px solid #666;
        padding: 3px 5px;
    }
}

/* Article Page Specific */
.article-content {
    padding: 20px;
}

.article-content h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.article-content .meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.article-content .main-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 20px;
}

.article-content .text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Homepage specific styles */
.homepage-hero {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
}

.homepage-hero img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 15px;
}

.homepage-hero h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.homepage-hero .excerpt {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* Ensure images don't have AI badges */
.ai-badge {
    display: none !important;
}

/* Category Navigation in Sidebar */
.category-nav {
    background: white;
    border: 2px solid #000;
    margin-bottom: 20px;
    padding: 15px;
}

.category-nav h3 {
    font-size: 14px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-align: center;
}

.category-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-nav li {
    margin-bottom: 8px;
}

.category-nav a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.category-nav a:hover {
    color: #dc3545;
    background: #f9f9f9;
}

.category-nav a:last-child {
    border-bottom: none;
}

/* YouTube Video Styling */
.youtube-video {
    margin-bottom: 20px;
    border: 2px solid #000;
    background: white;
}

.youtube-video a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.youtube-thumbnail {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.youtube-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.youtube-video[data-ratio="16:9"] .youtube-thumbnail {
    aspect-ratio: 16/9;
}

.youtube-video[data-ratio="9:16"] .youtube-thumbnail {
    aspect-ratio: 9/16;
}

.youtube-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background 0.3s ease;
}

.youtube-video:hover .youtube-play-button {
    background: rgba(220, 53, 69, 0.9);
}

.youtube-title {
    padding: 10px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
}

/* Google AdSense Styling */
.adsense-container {
    margin-bottom: 20px;
    border: 2px solid #000;
    background: white;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adsbygoogle {
    display: block !important;
    min-height: 250px;
}

/* Responsive AdSense */
@media (max-width: 768px) {
    .adsense-container {
        min-height: 200px;
    }
    
    .adsbygoogle {
        min-height: 200px;
    }
}

/* Section Titles - Clickable */
.section-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.section-title a:hover {
    color: #dc3545;
}

/* Article Tags */
.article-tags {
    margin: 8px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag-link {
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    border: 1px solid #ddd;
}

.tag-link:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Article Actions */
.article-actions {
    margin-top: 8px;
    text-align: right;
}

.more-button {
    background: #dc3545;
    color: white;
    text-decoration: none;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    display: inline-block;
}

.more-button:hover {
    background: #c82333;
}

/* Section More Button */
.section-more {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.section-more-button {
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    display: inline-block;
}

.section-more-button:hover {
    background: #dc3545;
}

/* Clickable Excerpts */
.excerpt a {
    color: #666;
    text-decoration: none;
}

.excerpt a:hover {
    color: #dc3545;
}



/* Hero Article Enhancements */
.homepage-hero {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.hero-image {
    margin: 15px 0;
}

.hero-image a {
    display: block;
}

.hero-image img {
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.hero-image a:hover img {
    opacity: 0.9;
}

.homepage-hero .excerpt a {
    color: inherit;
    text-decoration: none;
}

.homepage-hero .excerpt a:hover {
    color: #dc3545;
}

.hero-more {
    margin-top: 15px;
    text-align: left;
}

.homepage-hero .article-tags {
    margin: 15px 0;
}

.homepage-hero .tag-link {
    display: inline-block;
    background: #f8f9fa;
    color: #dc3545;
    padding: 4px 8px;
    margin: 2px 4px 2px 0;
    border-radius: 3px;
    text-decoration: none;
    font-size: 12px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.homepage-hero .tag-link:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

