/* The Sports Chronicle - Main Site CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #222;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #000;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-top {
    background: #e31c23;
    padding: 8px 0;
    text-align: center;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header-main {
    padding: 15px 0;
    border-bottom: 3px solid #e31c23;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.5em;
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.logo span {
    color: #e31c23;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

nav a:hover {
    color: #e31c23;
}

.register-link {
    background: transparent;
    color: white !important;
    padding: 10px 25px;
    border: 2px solid white;
    border-radius: 25px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.register-link:hover {
    background: white;
    color: #000 !important;
}

.account-link {
    background: #e31c23;
    color: white !important;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s;
}

.account-link:hover {
    background: #c21920;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(227, 28, 35, 0.4);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 0;
    color: white;
}

.hero-tag {
    display: inline-block;
    background: #e31c23;
    color: white;
    padding: 6px 16px;
    font-size: 0.75em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    width: fit-content;
}

.hero-content h1 {
    font-size: 3.5em;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    max-width: 800px;
}

.hero-content h1 a {
    color: white;
    text-decoration: none;
}

.hero-excerpt {
    font-size: 1.2em;
    max-width: 700px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    line-height: 1.5;
}

.hero-meta {
    font-size: 0.9em;
    color: #ddd;
}

/* Sports Navigation */
.sports-nav {
    background: #f8f8f8;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 40px;
    position: sticky;
    top: 97px;
    z-index: 999;
}

.sports-nav .container {
    display: flex;
    gap: 0;
    overflow-x: auto;
}

.sport-tab {
    padding: 18px 30px;
    background: transparent;
    border: none;
    font-weight: 700;
    font-size: 0.9em;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
}

.sport-tab:hover {
    color: #e31c23;
    background: #fff;
}

.sport-tab.active {
    color: #e31c23;
    border-bottom-color: #e31c23;
    background: #fff;
}

/* Articles Section */
.articles-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e31c23;
}

.section-title {
    font-size: 2em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s;
}

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

.article-image {
    height: 230px;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-sport {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e31c23;
    color: white;
    padding: 5px 12px;
    font-size: 0.7em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffd700;
    color: #000;
    padding: 5px 12px;
    font-size: 0.7em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    font-size: 1.4em;
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 800;
}

.article-content h3 a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s;
}

.article-content h3 a:hover {
    color: #e31c23;
}

.article-excerpt {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    color: #999;
    font-size: 0.85em;
    font-weight: 600;
}

/* Footer */
footer {
    background: #000;
    color: white;
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: #999;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e31c23;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2.5em;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .header-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-content h1 {
        font-size: 2em;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}