/*
Theme Name: Vietnam Football Portal - Bright Edition
Theme URI: https://tysobongda.vn
Description: Chuyen trang bong da Viet Nam - Phien ban sang dep, chuyen nghiep
Version: 2.0.0
Author: Vietnam Football
Author URI: https://tysobongda.vn
License: GPL v2 or later
Text Domain: vietnam-football
Domain Path: /languages
Tags: football, sports, responsive, bright
*/

/* ===========================
   BRIGHT THEME - NO DARK COLORS
   =========================== */

:root {
    --primary: #0052cc;
    --primary-dark: #003d99;
    --primary-light: #e6f0ff;
    --secondary: #059669;
    --accent: #f59e0b;
    --bg-page: #f0f4f8;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --bg-topbar: #1e293b;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #16a34a;
    --success-bg: #dcfce7;
    --warning: #d97706;
    --warning-bg: #fef3c7;
    --danger: #dc2626;
    --info: #0284c7;
    --info-bg: #e0f2fe;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

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

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

/* Links */
a { color: var(--primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-dark); }

/* Header - BRIGHT */
header {
    background: var(--bg-header);
    border-bottom: 3px solid var(--primary);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

nav a {
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
}

nav a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

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

/* Main */
main {
    min-height: 60vh;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Match Cards - BRIGHT */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.match-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.match-league {
    background-color: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.75rem;
}

.match-time {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
}

.match-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}

.team {
    flex: 1;
    text-align: center;
}

.team-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-top: 6px;
}

.score-container {
    flex: 0.8;
    text-align: center;
}

.score {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.match-status {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
    margin-top: 12px;
}

/* Odds */
.odds-row {
    display: flex;
    justify-content: space-around;
    gap: 8px;
}

.odd {
    flex: 1;
    background-color: var(--primary-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px;
    text-align: center;
}

.odd-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.odd-value {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
}

/* Detail Page - BRIGHT */
.match-detail {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 20px 0;
}

.detail-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-light);
}

.detail-teams {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 24px;
    margin: 24px 0;
}

.detail-team {
    flex: 1;
    text-align: center;
}

.detail-team-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 12px;
}

.detail-score {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 12px 0;
}

.detail-status {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Tabs - BRIGHT */
.tabs {
    display: flex;
    gap: 4px;
    margin: 24px 0 16px 0;
    border-bottom: 2px solid var(--border-light);
    flex-wrap: wrap;
}

.tab-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-button.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-button:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stats Table - BRIGHT */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.stats-table th,
.stats-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.stats-table th {
    background: var(--bg-page);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.85rem;
}

.stats-table tbody tr:hover { background: var(--bg-page); }
.stats-table tbody tr:last-child td { border-bottom: none; }

/* Footer - BRIGHT */
footer {
    background: var(--text-primary);
    color: #94a3b8;
    padding: 40px 0 20px;
    margin-top: 48px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li { margin-bottom: 8px; }

.footer-section a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-section a:hover { color: white; }

.footer-bottom {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #64748b;
    font-size: 0.85rem;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* League Tag Colors */
.league-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    color: white;
}
.league-tag.vn1 { background: #16a34a; }
.league-tag.vn2 { background: #2563eb; }
.league-tag.vnc { background: #d97706; }
.league-tag.epl { background: #6366f1; }
.league-tag.laliga { background: #ef4444; }
.league-tag.seriea { background: #9333ea; }
.league-tag.bundesliga { background: #ec4899; }
.league-tag.ligue1 { background: #06b6d4; }

/* Status Colors */
.time-cell { color: var(--text-secondary); font-weight: 600; }
.status-live { color: var(--success); font-weight: 700; }
.status-finished { color: var(--text-muted); }
.score-live { color: var(--success); font-weight: 800; }
.score-finished { color: var(--text-muted); }

/* Action Button */
.action-btn {
    padding: 5px 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.2s;
}
.action-btn:hover { background: var(--primary-dark); }

/* Responsive */
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 12px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 4px; }
    .matches-grid { grid-template-columns: 1fr; }
    .match-body { flex-direction: column; }
    .detail-teams { flex-direction: column; }
    .tabs { gap: 2px; }
    .tab-button { padding: 10px 12px; font-size: 0.85rem; }
    .container { padding: 12px; }
    .match-detail { padding: 16px; }
    .detail-score { font-size: 2rem; }
}

@media (max-width: 480px) {
    .logo { font-size: 1.1rem; }
    nav a { padding: 6px 10px; font-size: 0.82rem; }
    .score { font-size: 1.5rem; }
    .detail-score { font-size: 1.8rem; }
    .footer-content { grid-template-columns: 1fr; }
}
