/* SportsGround Frontend Styles */

:root {
    --primary: #1a472a;
    --primary-dark: #0f2d1a;
    --accent: #f5a623;
    --accent-hover: #e09515;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
}

.site-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.site-header .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.site-header .nav-link:hover {
    color: var(--accent) !important;
}

/* Main */
.site-main {
    flex: 1;
    padding: 2rem 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #2d6a4f 100%);
    color: #fff;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 1rem 1rem;
}

.hero-section h1 {
    font-weight: 800;
    font-size: 2.5rem;
}

/* Live Scores */
.scores-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.match-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.match-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.match-card.live {
    border-left: 4px solid #dc3545;
}

.match-card.finished {
    border-left: 4px solid #6c757d;
}

.match-card.upcoming {
    border-left: 4px solid var(--accent);
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.team-name {
    font-weight: 600;
    flex: 1;
}

.team-name.home {
    text-align: right;
}

.match-score {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    min-width: 80px;
    text-align: center;
}

.match-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.status-badge.live {
    background: #dc3545;
    color: #fff;
    animation: pulse 1.5s infinite;
}

.status-badge.finished {
    background: #e9ecef;
    color: #495057;
}

.status-badge.upcoming {
    background: #fff3cd;
    color: #856404;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.scores-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Blog Cards */
.blog-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.25rem;
}

.blog-card .category-badge {
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    text-decoration: none;
}

.blog-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.75rem 0 0.5rem;
}

.blog-card h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-widget {
    background: var(--bg-light);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.popular-post-item {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.popular-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-item a {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
}

.popular-post-item a:hover .popular-title {
    color: var(--primary);
}

.popular-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.popular-title {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    line-height: 1.3;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.category-list a:hover {
    color: var(--primary);
}

/* Single Post */
.post-header {
    margin-bottom: 2rem;
}

.post-header {
background: #194529;
    padding: 31px;
    text-align: center;
    color: white;
    border-radius: 4px;
}

.post-header h1 {
    font-weight: 800;
    font-size: 2rem;
}

.post-featured-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.related-posts h3 {
    font-weight: 700;
    margin-bottom: 1.25rem;
}

/* Contact Form */
.contact-form {
    background: var(--bg-light);
    border-radius: 0.75rem;
    padding: 2rem;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 71, 42, 0.15);
}

.btn-primary-custom {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-heading {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    margin-right: 0.5rem;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

.footer-divider {
    border-color: rgba(255,255,255,0.15);
    margin: 2rem 0 1rem;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* Sports Page */
.sports-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2d6a4f 100%);
    color: #fff;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.sports-hero h1 {
    font-weight: 800;
}

.sports-hero.football {
    background: linear-gradient(135deg, #1a472a 0%, #40916c 100%);
}

.sports-hero.cricket {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
}

/* Alerts */
.alert-success, .alert-danger, .alert-info {
    border-radius: 0.5rem;
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar {
        position: static;
        margin-top: 2rem;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .match-teams {
        flex-direction: column;
        text-align: center;
    }

    .team-name.home {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .post-header h1 {
        font-size: 1.5rem;
    }
}
