/*
Theme Name: Quan Choa TV
Description: Theme tùy chỉnh cho website Quan Choa TV - Kênh Live Thể Thao Full HD
Version: 2.0
Author: Custom Theme
*/

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

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

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

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* SEO and Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Custom Brand Colors */
:root {
    --brand-green: #83ff65;
    --brand-green-dark: #49ca00;
    --brand-orange: #ff6900;
    --brand-blue: #2b7fff;
    --brand-purple: #ad46ff;
    --brand-cyan: #00b8db;
    --neutral-950: #0a0a0a;
    --neutral-900: #171717;
    --neutral-800: #262626;
    --neutral-700: #404040;
    --neutral-600: #525252;
    --neutral-500: #737373;
    --neutral-400: #a3a3a3;
    --neutral-300: #d4d4d4;
    --neutral-200: #e5e5e5;
    --neutral-100: #f5f5f5;
}

/* Custom Gradient Backgrounds */
.bg-brand-gradient {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
}

.bg-hero-gradient {
    background: linear-gradient(135deg, var(--neutral-900) 0%, var(--neutral-950) 100%);
}

/* Header Styles */
.main-header {
    background: var(--neutral-900);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neutral-800);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background: rgba(23, 23, 23, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Navigation Styles */
.nav-link {
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--brand-green);
}

.nav-link.active {
    color: var(--brand-green);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-green);
    border-radius: 1px;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
    color: #000000;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(131, 255, 101, 0.25);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(131, 255, 101, 0.4);
    color: #000000;
}

.btn-secondary {
    background: transparent;
    color: var(--brand-green);
    border: 2px solid var(--brand-green);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--brand-green);
    color: #000000;
    transform: translateY(-2px);
}

/* Card Styles */
.card {
    background: var(--neutral-900);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--neutral-800);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--neutral-700);
}

.card-gradient {
    background: linear-gradient(135deg, var(--neutral-900) 0%, var(--neutral-800) 100%);
}

/* Sports Category Cards */
.sports-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.sports-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(131, 255, 101, 0.2);
}

/* Commentator Cards */
.commentator-card {
    text-align: center;
    transition: all 0.3s ease;
}

.commentator-card:hover {
    transform: translateY(-8px);
}

.commentator-image {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 auto 16px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.commentator-card:hover .commentator-image {
    box-shadow: 0 12px 30px rgba(131, 255, 101, 0.3);
}

/* Content Section Styles */
.content-section {
    background: var(--neutral-900);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}

.progress-indicator {
    position: absolute;
    right: 2rem;
    top: 2rem;
    bottom: 2rem;
    width: 8px;
    background: var(--neutral-700);
    border-radius: 4px;
}

.progress-indicator::after {
    content: '';
    position: absolute;
    top: 3rem;
    left: 0;
    width: 100%;
    height: 5rem;
    background: var(--brand-green);
    border-radius: 4px;
}

/* Sidebar Styles */
.sidebar {
    background: var(--neutral-900);
    border-radius: 16px;
    padding: 2rem;
}

.sidebar-item {
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-item:hover {
    background: var(--neutral-800);
}

.sidebar-item.active {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
    color: #000000;
    font-weight: 600;
}

/* Footer Styles */
.main-footer {
    background: var(--neutral-900);
    border-top: 1px solid var(--neutral-800);
    color: #ffffff;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--brand-green);
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section a {
    color: var(--neutral-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--brand-green);
}

.footer-bottom {
    border-top: 1px solid var(--neutral-800);
    padding-top: 2rem;
    text-align: center;
    color: var(--neutral-400);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Hero Section Specific */
.hero-gradient-text {
    background: linear-gradient(135deg, var(--brand-green) 0%, #ffffff 50%, var(--brand-green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }

    .card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 1rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .card {
        padding: 1rem;
    }

    .commentator-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .grid-responsive {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--brand-green);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--brand-green);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--neutral-600);
    }

    .btn-primary {
        border: 2px solid var(--brand-green-dark);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .main-footer,
    .btn-primary,
    .btn-secondary {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .card {
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-900);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-green-dark);
}

/* Selection Colors */
::selection {
    background: var(--brand-green);
    color: #000000;
}

::-moz-selection {
    background: var(--brand-green);
    color: #000000;
}