/*
Theme Name: Sports Football
Theme URI: https://example.com/
Description: A football sports theme for WordPress
Version: 1.0
Author: Developer
Author URI: https://example.com/
*/

:root {
    --primary: #ffffff;
    --secondary: #d32f2f;
    --accent: #d32f2f;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;
    --bg-body: #f5f5f5;
    --bg-card: #ffffff;
    --border: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
    --live-red: #d32f2f;
    --transition: all 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: var(--bg-body);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    transition: var(--transition);
}
.logo:hover { opacity: 0.9; }
.logo img { 
    width: 40px; 
    height: 40px; 
    object-fit: contain; 
    border-radius: 8px;
}
.search-box {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
    position: relative;
}
.search-box input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
}
.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}
.search-box input::placeholder { color: var(--text-muted); }
.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}
.search-icon::before {
    content: '🔍';
    font-size: 14px;
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover { 
    background: rgba(211, 47, 47, 0.08); 
    color: var(--accent); 
    transform: translateY(-1px);
}
.nav-links a.active { 
    background: var(--accent); 
    color: white; 
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.main-content { padding: 20px 0; }
.layout-grid {
    display: flex;
    gap: 20px;
}
.main-column {
    flex: 1;
    min-width: 0;
}
.sidebar {
    width: 320px;
    flex-shrink: 0;
}

.section { margin-bottom: 28px; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent);
    position: relative;
}
.section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #ff6b6b);
    border-radius: 2px;
}
.section-header h1,
.section-header h2 { 
    font-size: 18px; 
    font-weight: 700; 
    color: var(--text-primary); 
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-header .more { 
    font-size: 13px; 
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    transition: var(--transition);
}
.section-header .more:hover { 
    color: var(--accent);
    background: rgba(211, 47, 47, 0.08);
}

.match-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
}
.match-scroll::-webkit-scrollbar { height: 6px; }
.match-scroll::-webkit-scrollbar-track { background: var(--bg-body); border-radius: 3px; }
.match-scroll::-webkit-scrollbar-thumb { 
    background: #ddd; 
    border-radius: 3px;
    transition: var(--transition);
}
.match-scroll::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.match-card-simple {
    flex: 0 0 auto;
    width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.match-card-simple:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.match-league {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.match-league img { width: 16px; height: 16px; object-fit: contain; }
.match-teams-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.match-teams-simple img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--bg-body);
    padding: 3px;
}
.match-teams-simple .vs {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
}
.match-teams-simple .vs span {
    color: var(--accent);
    margin: 0 6px;
}

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.video-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.video-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: var(--transition);
}
.video-card:hover .video-thumb {
    transform: scale(1.03);
}
.video-info { padding: 12px; }
.video-title { 
    font-size: 13px; 
    font-weight: 600; 
    color: var(--text-primary); 
    margin-bottom: 6px; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    line-height: 1.4;
}
.video-meta { 
    font-size: 11px; 
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.video-meta span:first-child {
    padding: 2px 6px;
    background: rgba(211, 47, 47, 0.1);
    color: var(--accent);
    border-radius: 4px;
    font-weight: 500;
}

.news-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-tag {
    padding: 7px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.filter-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.filter-tag.active { 
    background: linear-gradient(135deg, var(--accent), #e53935);
    color: white; 
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.news-list { display: flex; flex-direction: column; gap: 7px; }
.news-item {
    display: flex;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.news-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    border-color: rgba(211, 47, 47, 0.3);
}
.news-thumb {
    width: 130px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    transition: var(--transition);
}
.news-item:hover .news-thumb {
    transform: scale(1.02);
}
.news-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.news-category { 
    font-size: 11px; 
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 6px;
    padding: 2px 6px;
    background: rgba(211, 47, 47, 0.08);
    border-radius: 4px;
    align-self: flex-start;
}
.news-title { 
    font-size: 15px; 
    font-weight: 600; 
    color: var(--text-primary); 
    margin-bottom: 6px; 
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-title:hover { color: var(--accent); }
.news-desc { 
    font-size: 13px; 
    color: var(--text-secondary); 
    line-height: 1.6; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    margin-bottom: 8px;
}
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.news-date {
    font-size: 11px;
    color: var(--text-muted);
}
.news-views {
    font-size: 11px;
    color: var(--text-muted);
}

.sidebar-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}
.sidebar-section h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
}

.league-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.league-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    background: rgba(211, 47, 47, 0.05);
    border-radius: 8px;
    transition: var(--transition);
}
.league-item:hover { 
    background: rgba(211, 47, 47, 0.12); 
    transform: translateY(-2px);
}
.league-item img { 
    width: 32px; 
    height: 32px; 
    object-fit: contain; 
    margin-bottom: 4px;
    border-radius: 6px;
}
.league-item span { font-size: 12px; font-weight: 500; color: var(--text-secondary); }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.team-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    background: rgba(211, 47, 47, 0.05);
    border-radius: 8px;
    transition: var(--transition);
}
.team-item:hover { 
    background: rgba(211, 47, 47, 0.12); 
    transform: translateY(-2px);
}
.team-item img { 
    width: 34px; 
    height: 34px; 
    object-fit: contain; 
    border-radius: 50%;
    margin-bottom: 4px;
    padding: 2px;
    background: white;
}
.team-item span:first-of-type { font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.team-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 10px;
    padding: 2px 5px;
    background: var(--accent);
    color: white;
    border-radius: 4px;
    font-weight: 600;
}

.player-list { display: flex; flex-direction: column; gap: 10px; }
.player-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(211, 47, 47, 0.04);
    border-radius: 8px;
    transition: var(--transition);
}
.player-item:hover { 
    background: rgba(211, 47, 47, 0.08); 
    transform: translateX(4px);
}
.player-item .rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}
.player-item .rank.gold { 
    background: linear-gradient(135deg, #FFD700, #FFA500); 
    color: white;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}
.player-item .rank.silver { 
    background: linear-gradient(135deg, #E8E8E8, #C0C0C0); 
    color: #333;
    box-shadow: 0 2px 8px rgba(200, 200, 200, 0.3);
}
.player-item .rank.bronze { 
    background: linear-gradient(135deg, #CD7F32, #B87333); 
    color: white;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}
.player-item img { 
    width: 32px; 
    height: 32px; 
    object-fit: cover; 
    border-radius: 50%;
    border: 2px solid var(--border);
}
.player-info { flex: 1; min-width: 0; }
.player-name { 
    font-size: 13px; 
    font-weight: 600; 
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.player-team { 
    font-size: 11px; 
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 24px 0;
    margin-top: 28px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.footer-col h4 { 
    font-size: 14px; 
    font-weight: 700; 
    color: var(--text-primary); 
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { 
    font-size: 13px; 
    color: var(--text-muted);
    transition: var(--transition);
}
.footer-col a:hover { 
    color: var(--accent);
    padding-left: 4px;
}
.footer-bottom { 
    text-align: center; 
    font-size: 12px; 
    color: var(--text-muted); 
    padding-top: 16px; 
    border-top: 1px solid var(--border); 
    margin-top: 16px;
}

@media (max-width: 1150px) {
    .layout-grid { 
        flex-direction: column; 
        gap: 20px;
    }
    .sidebar { 
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .video-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .search-box { display: none; }
    .nav-links a { padding: 8px 12px; font-size: 13px; }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .sidebar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 550px) {
    .video-grid { grid-template-columns: 1fr; }
    .news-item { flex-direction: column; }
    .news-thumb { width: 100%; height: 150px; }
    .match-card-simple { width: 170px; }
    .match-teams-simple img { width: 32px; height: 32px; }
    .sidebar { grid-template-columns: 1fr; }
}