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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333333;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.yellow-header {
    background: #ffd700;
    padding: 15px 0;
    margin-bottom: 0;
    border-bottom: none;
}

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

.yellow-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    font-family: 'Georgia', serif;
}

/* Top Menu */
.top-menu {
    display: flex;
    align-items: center;
}

.activate-tv-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.activate-tv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(45deg, #0056b3, #004085);
}

.btn-text {
    font-size: 1rem;
}

.btn-icon {
    font-size: 1.2rem;
}

/* Main Content */
main {
    flex: 1;
    margin-top: 40px;
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
}

.content-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 15px;
}

.yellow-line {
    height: 3px;
    background: #ffd700;
    margin-bottom: 25px;
    border-radius: 2px;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.article-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-image {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e0e0e0;
}

.image-placeholder {
    font-size: 3rem;
    color: #6c757d;
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-excerpt {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 15px;
}

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

.article-category {
    background: #007bff;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.article-date {
    color: #999999;
}

/* Featured Section */
.featured-section {
    margin-top: 50px;
}

.featured-article {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.featured-image {
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e0e0e0;
}

.image-placeholder-large {
    font-size: 4rem;
    color: #6c757d;
}

.featured-content {
    padding: 30px;
}

.featured-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-excerpt {
    font-size: 1.1rem;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.featured-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 0.9rem;
}

.featured-category {
    background: #ffd700;
    color: #000000;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.featured-date {
    color: #999999;
}

.featured-author {
    color: #007bff;
    font-style: italic;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
    color: #666666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .yellow-header h1 {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-card, .featured-article {
        margin: 0 auto;
        max-width: 500px;
    }
    
    .featured-content {
        padding: 20px;
    }
    
    .featured-content h2 {
        font-size: 1.5rem;
    }
    
    .featured-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .yellow-header h1 {
        font-size: 1.8rem;
    }
    
    .activate-tv-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .content-title {
        font-size: 1.5rem;
    }
    
    .article-content, .featured-content {
        padding: 15px;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
    
    .featured-content h2 {
        font-size: 1.3rem;
    }
}

/* Focus styles for TV navigation */
.activate-tv-btn:focus,
.article-card:focus {
    outline: 3px solid #00d4ff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .article-card,
    .featured-article {
        border-width: 2px;
    }
    
    .activate-tv-btn {
        border: 2px solid #ffffff;
    }
}

/* Animation for hover effects */
.article-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.activate-tv-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
