/* ========================================
   Hesgoal VIP - Live Football Streaming
   Light Theme - Mobile First - Bootstrap 5
   ======================================== */

/* CSS Variables - Light Theme */
:root {
    --hesgoal-primary: #dc3545;
    --hesgoal-primary-dark: #c82333;
    --hesgoal-primary-light: #ff4757;
    --hesgoal-secondary: #6c757d;
    --hesgoal-success: #28a745;
    --hesgoal-info: #17a2b8;
    --hesgoal-warning: #ffc107;
    --hesgoal-danger: #dc3545;
    --hesgoal-light: #f8f9fa;
    --hesgoal-dark: #212529;
    --hesgoal-white: #ffffff;
    --hesgoal-gray-100: #f8f9fa;
    --hesgoal-gray-200: #e9ecef;
    --hesgoal-gray-300: #dee2e6;
    --hesgoal-gray-400: #ced4da;
    --hesgoal-gray-500: #adb5bd;
    --hesgoal-gray-600: #6c757d;
    --hesgoal-gray-700: #495057;
    --hesgoal-gray-800: #343a40;
    --hesgoal-gray-900: #212529;
    --hesgoal-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --hesgoal-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --hesgoal-border-radius: 0.5rem;
    --hesgoal-transition: all 0.3s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.hesgoal-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--hesgoal-light);
    color: var(--hesgoal-dark);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Top Banner */
.hesgoal-top-banner {
    font-size: 0.875rem;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header & Navigation */
.hesgoal-header {
    background: var(--hesgoal-white);
    box-shadow: var(--hesgoal-shadow);
    z-index: 1030;
}

.hesgoal-logo {
  text-decoration: none;
    transition: var(--hesgoal-transition);
}

.hesgoal-logo:hover {
    transform: scale(1.05);
}

.hesgoal-logo-icon {
    width: 42px;
    height: 42px;
    transition: var(--hesgoal-transition);
}

.hesgoal-logo:hover .hesgoal-logo-icon {
    transform: rotate(360deg);
}

.hesgoal-nav-link {
    font-weight: 500;
    color: var(--hesgoal-gray-700);
    transition: var(--hesgoal-transition);
    border-radius: var(--hesgoal-border-radius);
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
}

.hesgoal-nav-link:hover {
    color: var(--hesgoal-primary);
    background-color: var(--hesgoal-gray-100);
}

.hesgoal-nav-link.active {
    color: var(--hesgoal-primary);
    font-weight: 600;
    background-color: rgba(220, 53, 69, 0.1);
}

/* Hero Section */
.hesgoal-hero {
    background: linear-gradient(135deg, #fff 0%, var(--hesgoal-gray-100) 100%);
    padding: 4rem 0;
    border-bottom: 1px solid var(--hesgoal-gray-200);
}

.hesgoal-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--hesgoal-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hesgoal-hero-title .text-danger {
    color: var(--hesgoal-primary) !important;
}

.hesgoal-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--hesgoal-gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hesgoal-feature-badge {
    display: inline-flex;
  align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--hesgoal-white);
    border: 1px solid var(--hesgoal-gray-300);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--hesgoal-gray-700);
    transition: var(--hesgoal-transition);
    box-shadow: var(--hesgoal-shadow);
}

.hesgoal-feature-badge:hover {
    border-color: var(--hesgoal-primary);
    transform: translateY(-2px);
    box-shadow: var(--hesgoal-shadow-lg);
}

/* Card Styles */
.hesgoal-card {
    background: var(--hesgoal-white);
    border: 1px solid var(--hesgoal-gray-200);
    border-radius: var(--hesgoal-border-radius);
    padding: 1.5rem;
    transition: var(--hesgoal-transition);
    box-shadow: var(--hesgoal-shadow);
    height: 100%;
}

.hesgoal-card:hover {
    border-color: var(--hesgoal-primary);
    box-shadow: var(--hesgoal-shadow-lg);
    transform: translateY(-5px);
}

.hesgoal-card-header {
    border-bottom: 2px solid var(--hesgoal-gray-200);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.hesgoal-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hesgoal-dark);
    margin-bottom: 0;
}

/* Match Cards */
.hesgoal-match-card {
    background: var(--hesgoal-white);
    border: 2px solid var(--hesgoal-gray-200);
    border-radius: var(--hesgoal-border-radius);
    padding: 1.25rem;
    transition: var(--hesgoal-transition);
    box-shadow: var(--hesgoal-shadow);
}

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

.hesgoal-team-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border: 2px solid var(--hesgoal-gray-200);
    border-radius: 0.5rem;
    padding: 0.25rem;
    background: var(--hesgoal-white);
    transition: var(--hesgoal-transition);
}

.hesgoal-match-card:hover .hesgoal-team-logo {
    border-color: var(--hesgoal-primary);
    transform: scale(1.1);
}

.hesgoal-score {
    font-size: 2rem;
    font-weight: 900;
    color: var(--hesgoal-primary);
    background: rgba(220, 53, 69, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: var(--hesgoal-border-radius);
    border: 2px solid rgba(220, 53, 69, 0.2);
    min-width: 100px;
    text-align: center;
}

.hesgoal-team-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--hesgoal-dark);
    text-align: center;
    display: block;
    margin-top: 0.5rem;
}

/* Badges */
.hesgoal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hesgoal-badge-live {
    background: var(--hesgoal-danger);
    color: var(--hesgoal-white);
    animation: pulse 2s infinite;
}

.hesgoal-badge-live::before {
  content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--hesgoal-white);
  border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.hesgoal-badge-upcoming {
    background: rgba(220, 53, 69, 0.1);
    color: var(--hesgoal-primary);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.hesgoal-badge-finished {
    background: var(--hesgoal-gray-200);
    color: var(--hesgoal-gray-600);
}

/* Buttons */
.hesgoal-btn {
    display: inline-flex;
  align-items: center;
  justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--hesgoal-border-radius);
    transition: var(--hesgoal-transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.hesgoal-btn-primary {
    background: var(--hesgoal-primary);
    color: var(--hesgoal-white);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.hesgoal-btn-primary:hover {
    background: var(--hesgoal-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    color: var(--hesgoal-white);
}

.hesgoal-btn-outline {
    background: transparent;
    color: var(--hesgoal-primary);
    border: 2px solid var(--hesgoal-primary);
}

.hesgoal-btn-outline:hover {
    background: var(--hesgoal-primary);
    color: var(--hesgoal-white);
    transform: translateY(-2px);
}

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

.hesgoal-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--hesgoal-dark);
    margin-bottom: 1rem;
}

.hesgoal-section-subtitle {
    font-size: 1.125rem;
    color: var(--hesgoal-gray-600);
    margin-bottom: 3rem;
}

/* Feature Cards */
.hesgoal-feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--hesgoal-white);
    border: 1px solid var(--hesgoal-gray-200);
    border-radius: var(--hesgoal-border-radius);
    transition: var(--hesgoal-transition);
    height: 100%;
}

.hesgoal-feature-card:hover {
    border-color: var(--hesgoal-primary);
    box-shadow: var(--hesgoal-shadow-lg);
    transform: translateY(-5px);
}

.hesgoal-feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--hesgoal-primary), var(--hesgoal-primary-light));
    border-radius: var(--hesgoal-border-radius);
    display: flex;
  align-items: center;
  justify-content: center;
    color: var(--hesgoal-white);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.2);
}

.hesgoal-feature-card:hover .hesgoal-feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.hesgoal-feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hesgoal-dark);
    margin-bottom: 0.75rem;
}

.hesgoal-feature-text {
    font-size: 0.95rem;
    color: var(--hesgoal-gray-600);
    line-height: 1.6;
}

/* News Cards */
.hesgoal-news-card {
    background: var(--hesgoal-white);
    border: 1px solid var(--hesgoal-gray-200);
    border-radius: var(--hesgoal-border-radius);
    overflow: hidden;
    transition: var(--hesgoal-transition);
    box-shadow: var(--hesgoal-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hesgoal-news-card:hover {
    border-color: var(--hesgoal-primary);
    box-shadow: var(--hesgoal-shadow-lg);
    transform: translateY(-5px);
}

.hesgoal-news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--hesgoal-transition);
}

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

.hesgoal-news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hesgoal-news-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(220, 53, 69, 0.1);
    color: var(--hesgoal-primary);
    border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.hesgoal-news-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hesgoal-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.hesgoal-news-title a {
    color: var(--hesgoal-dark);
    text-decoration: none;
    transition: var(--hesgoal-transition);
}

.hesgoal-news-title a:hover {
    color: var(--hesgoal-primary);
}

.hesgoal-news-excerpt {
    font-size: 0.95rem;
    color: var(--hesgoal-gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.hesgoal-news-meta {
  display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--hesgoal-gray-500);
    padding-top: 1rem;
    border-top: 1px solid var(--hesgoal-gray-200);
}

/* Footer */
.hesgoal-footer {
    background: var(--hesgoal-dark);
    color: var(--hesgoal-gray-400);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.hesgoal-footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hesgoal-white);
    margin-bottom: 1rem;
}

.hesgoal-footer-link {
    color: var(--hesgoal-gray-400);
    text-decoration: none;
    transition: var(--hesgoal-transition);
    display: block;
    padding: 0.25rem 0;
}

.hesgoal-footer-link:hover {
    color: var(--hesgoal-primary);
    padding-left: 0.5rem;
}

.hesgoal-footer-bottom {
    border-top: 1px solid var(--hesgoal-gray-700);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

.hesgoal-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--hesgoal-gray-800);
    color: var(--hesgoal-gray-400);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--hesgoal-transition);
}

.hesgoal-social-link:hover {
    background: var(--hesgoal-primary);
    color: var(--hesgoal-white);
    transform: translateY(-3px);
}

/* SEO Content */
.hesgoal-seo-content {
    background: var(--hesgoal-white);
    padding: 3rem;
    border-radius: var(--hesgoal-border-radius);
    box-shadow: var(--hesgoal-shadow);
    margin-top: 2rem;
}

.hesgoal-seo-content h1,
.hesgoal-seo-content h2,
.hesgoal-seo-content h3 {
    color: var(--hesgoal-dark);
    margin-bottom: 1rem;
}

.hesgoal-seo-content p {
    color: var(--hesgoal-gray-700);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Utilities */
.hesgoal-text-primary {
    color: var(--hesgoal-primary) !important;
}

.hesgoal-bg-light {
    background-color: var(--hesgoal-light) !important;
}

.hesgoal-border-primary {
    border-color: var(--hesgoal-primary) !important;
}

/* Loading Spinner */
.hesgoal-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--hesgoal-gray-300);
    border-top-color: var(--hesgoal-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Media Queries */
@media (max-width: 991.98px) {
    .hesgoal-hero {
        padding: 3rem 0;
    }
    
    .hesgoal-section {
        padding: 3rem 0;
    }
    
    .hesgoal-hero-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }
}

@media (max-width: 767.98px) {
    .hesgoal-top-banner {
        font-size: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .hesgoal-section {
        padding: 2rem 0;
    }
    
    .hesgoal-score {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
        min-width: 80px;
    }
    
    .hesgoal-team-logo {
        width: 48px;
        height: 48px;
    }
    
    .hesgoal-match-card {
        padding: 1rem;
    }
    
    .hesgoal-seo-content {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hesgoal-hero {
        padding: 2rem 0;
    }
    
    .hesgoal-hero-title {
        font-size: 1.75rem;
    }
    
    .hesgoal-hero-subtitle {
        font-size: 1rem;
    }
    
    .hesgoal-feature-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .hesgoal-team-logo {
        width: 40px;
        height: 40px;
    }
    
    .hesgoal-score {
        font-size: 1.25rem;
        padding: 0.5rem 0.75rem;
        min-width: 70px;
    }
    
    .hesgoal-team-name {
        font-size: 0.85rem;
    }
}

/* Performance Optimizations */
.hesgoal-card,
.hesgoal-match-card,
.hesgoal-feature-card,
.hesgoal-news-card {
    will-change: transform;
}

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

/* Accessibility */
.hesgoal-nav-link:focus,
.hesgoal-btn:focus,
.hesgoal-footer-link:focus {
    outline: 2px solid var(--hesgoal-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
  .hesgoal-header,
    .hesgoal-top-banner,
    .hesgoal-footer,
    .hesgoal-btn {
    display: none;
  }
}
