
/* Modern KRAAK SPORT Design - Inspired by kraak-design.com & as.com */

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

:root {
    --primary: #000000;
    --accent-red: #FF1744;
    --accent-pink: #E91E63;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --text-dark: #1a1a1a;
    --text-medium: #666666;
    --jalgpall: #FF1744;
    --korvpall: #FF6B00;
    --tennis: #00C853;
    --rahvusvaheline: #2979FF;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 3px solid var(--accent-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo img {
    height: 45px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--accent-red);
    color: #fff;
}

/* Hero Section */
.hero {
    background: var(--gray-light);
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 4px solid var(--accent-red);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.hero-title .accent {
    color: var(--accent-red);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-medium);
    letter-spacing: 2px;
}

/* Section */
.section {
    padding: 4rem 0;
}

.section-gray {
    background: var(--gray-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    letter-spacing: -1px;
}

.section-title .accent {
    color: var(--accent-red);
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.featured-main {
    background: #fff;
    border: 3px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.featured-main:hover {
    transform: translateY(-8px);
}

.featured-secondary {
    background: #fff;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.featured-secondary:hover {
    border-color: var(--accent-red);
    transform: translateY(-4px);
}

.article-image {
    position: relative;
    overflow: hidden;
}

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

.featured-main:hover .article-image img,
.featured-secondary:hover .article-image img {
    transform: scale(1.05);
}

.featured-secondary .article-image img {
    height: 250px;
}

.category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1.25rem;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
}

.category-badge.jalgpall {
    background: var(--jalgpall);
}

.category-badge.korvpall {
    background: var(--korvpall);
}

.category-badge.tennis {
    background: var(--tennis);
}

.article-content {
    padding: 2rem;
}

.featured-secondary .article-content {
    padding: 1.5rem;
}

.article-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.featured-secondary .article-title {
    font-size: 1.25rem;
}

.article-meta {
    color: var(--text-medium);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-excerpt {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--accent-red);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: var(--primary);
    transform: translateX(4px);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background: #fff;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 23, 68, 0.2);
}

.news-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-content {
    padding: 1.5rem;
}

.category-tag {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    margin-bottom: 1rem;
}

.category-tag.jalgpall {
    background: var(--jalgpall);
    color: #fff;
}

.category-tag.korvpall {
    background: var(--korvpall);
    color: #fff;
}

.category-tag.tennis {
    background: var(--tennis);
    color: #fff;
}

.category-tag.rahvusvaheline {
    background: var(--rahvusvaheline);
    color: #fff;
}

.news-content h3 {
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.news-meta {
    color: var(--text-medium);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.news-content p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-pink) 100%);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Footer */
.footer {
    background: var(--primary);
    color: #fff;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-red);
}

.footer-copy {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* About Page */
.page-hero {
    background: var(--gray-light);
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 4px solid var(--accent-red);
}

.page-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.content-section h2 {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 3rem 0 1.5rem;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    padding: 2rem;
    background: #fff;
    border: 3px solid var(--gray-medium);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-4px);
}

.value-card h3 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--text-medium);
    margin-bottom: 0;
}

/* Covers Page */
.covers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    padding: 4rem 0;
}

.cover-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.cover-item:hover {
    transform: scale(1.05);
}

.cover-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    margin-bottom: 1rem;
}

.cover-image img {
    width: 100%;
    height: auto;
}

.cover-info h3 {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.cover-info p {
    color: var(--text-medium);
    font-size: 0.875rem;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding: 4rem 0;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    padding: 2rem;
    background: #fff;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.info-card p, .info-card a {
    color: var(--text-medium);
}

.info-card a {
    color: var(--accent-red);
    font-weight: 600;
}

.contact-form {
    background: var(--gray-light);
    padding: 3rem;
    border-radius: 8px;
    border: 3px solid var(--primary);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-medium);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
}

.btn-submit {
    width: 100%;
    padding: 1.25rem;
    background: var(--accent-red);
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    display: none;
    font-weight: 600;
    text-align: center;
}

.form-message.success {
    background: #C8E6C9;
    color: #2E7D32;
    display: block;
}

.form-message.error {
    background: #FFCDD2;
    color: #C62828;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .covers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .covers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .covers-grid {
        grid-template-columns: 1fr;
    }
}
