html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* =====================================================
   MODERN NAVBAR STYLES
===================================================== */

.modern-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.modern-navbar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.modern-navbar .navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50 !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.modern-navbar .navbar-brand:hover {
    color: #27ae60 !important;
    transform: scale(1.05);
}

/* Logo stilleri */
.navbar-logo {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.modern-navbar .navbar-brand i {
    font-size: 2rem;
    color: #27ae60;
}

.modern-nav-button {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.modern-nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.modern-nav-button:hover::before {
    left: 100%;
}

.modern-nav-button:hover {
    background: rgba(39, 174, 96, 0.2);
    color: #1e8449;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
    border-color: rgba(39, 174, 96, 0.3);
}

.modern-nav-button i {
    font-size: 1.1rem;
}

/* =====================================================
   REKLAM ALANI STYLES
===================================================== */

.ad-container {
    display: flex;
    justify-content: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ad-banner {
    width: 728px;
    height: 90px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ad-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.ad-banner:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ad-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.ad-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 1;
    position: relative;
}

.ad-content i {
    font-size: 1.5rem;
    opacity: 0.9;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive reklam alanı */
@media (max-width: 768px) {
    .ad-banner {
        width: 320px;
        height: 50px;
    }
    
    .ad-content {
        font-size: 0.9rem;
    }
    
    .ad-content i {
        font-size: 1.2rem;
    }
    
    /* Mobil için logo boyutu */
    .navbar-logo {
        height: 32px;
    }
    
    .modern-navbar .navbar-brand {
        font-size: 1.5rem;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .ad-banner {
        width: 280px;
        height: 45px;
    }
    
    .ad-content {
        font-size: 0.8rem;
    }
    
    /* Çok küçük ekranlar için logo */
    .navbar-logo {
        height: 28px;
    }
    
    .modern-navbar .navbar-brand {
        font-size: 1.3rem;
        gap: 6px;
    }
}

/* Flag icons styling */
.league-flag .fi {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

/* Flag responsive sizing */
@media (max-width: 768px) {
    .league-flag .fi {
        width: 20px;
        height: 15px;
    }
}

/* Flag hover effect */
.league-flag .fi:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Custom styling for matches table */
.matches-table {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Tablo yapısı için genel stil */
.table-header {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

/* LİG SATIRI STİLLERİ - DAHA KOYU ARKA PLAN */
.match-row {
    background: #e9ecef;  /* Lig sat�rlar� i�in koyu gri arka plan */
    border-bottom: 2px solid #dee2e6;
    padding: 8px 0;
    font-weight: 600;
    color: #343a40;
    position: relative;
}

.match-row:hover {
    background: #dee2e6;  /* Hover'da daha da koyula�t�r */
}

/* MA� DETAY SATIRLARI - A�IK ARKA PLAN */
.match-detail-row {
    background: #ffffff;  /* Ma� sat�rlar� i�in beyaz arka plan */
    border-bottom: 1px solid #e9ecef;
    padding: 6px 0;
    font-weight: 400;
    color: #495057;
    margin-bottom: 1px;
}

.match-detail-row:hover {
    background: #f8f9fa;  /* Hover'da hafif gri */
}

/* Status baz�nda �zel renkler - lig sat�rlar� i�in */
.match-row.live {
    background: #ffeeba;  /* Canl� ma�lar i�in sar� ton - lig sat�r� */
    border-left: 4px solid #ffc107;
}

.match-row.finished {
    background: #d1ecf1;  /* Bitmi� ma�lar i�in a��k mavi - lig sat�r� */
    opacity: 0.9;
}

.match-row.fixture {
    background: #e9ecef;  /* Gelecek ma�lar i�in normal gri - lig sat�r� */
}

/* Status baz�nda �zel renkler - ma� detay sat�rlar� i�in */
.match-detail-row.live {
    background: #fff3cd;  /* Canl� ma�lar i�in a��k sar� - ma� sat�r� */
    border-left: 4px solid #ffc107;
}

.match-detail-row.finished {
    background: #f8f9fa;  /* Bitmi� ma�lar i�in a��k gri - ma� sat�r� */
    opacity: 0.8;
}

.match-detail-row.fixture {
    background: #ffffff;  /* Gelecek ma�lar i�in beyaz - ma� sat�r� */
}

.league-flag {
    display: flex;
    align-items: center;
    gap: 8px;
}

.league-name {
    font-weight: 600;  /* Lig ismini daha kal�n yap */
    color: #212529;    /* Daha koyu renk */
    font-size: 0.9rem;
}

/* Match status indicators */
.match-row.live {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.match-row.finished {
    background-color: #f8f9fa;
    opacity: 0.8;
}

.match-row.fixture {
    background-color: #fff;
}

/* Live match animation */
.live-icon {
    color: #dc3545;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* =====================================================
   YÜZDE BADGE RENKLENDIRME SİSTEMİ - RGBA DİNAMİK
   Dinamik opaklık sistemi: %100 = tam opak, %50 altı = şeffaf
===================================================== */

/* Base badge styling */
.percentage-badge {
    display: inline-block;
    padding: 2px 5px; /* 2px 4px'dan biraz b�y�tt�m */
    border-radius: 3px;
    font-size: 0.62rem; /* 0.6'dan biraz b�y�tt�m */
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    min-width: 28px; /* 25'ten biraz b�y�tt�m */
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative; /* Yıldız için konumlandırma */
}

.percentage-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Dinamik RGBA renklendirme - JavaScript/Razor taraf�ndan yap�l�r */
.percentage-badge.perc-dynamic {
    /* Inline style ile background-color ve color atanacak */
}

/* Özel durumlar */
.perc-star {
    background: rgba(156, 39, 176, 0.2);
    color: #7b1fa2;
}

/* Yüksek başarı yıldızı - %85 üzeri için */
.percentage-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ffc107;
    border-radius: 50%;
    border: 1px solid #fff;
    display: none;
    z-index: 1;
}

.percentage-badge.high-performance::after {
    display: block;
    content: '★';
    font-size: 6px;
    line-height: 8px;
    color: #fff;
    text-align: center;
    background: #ffc107;
    border-radius: 50%;
    width: 8px;
    height: 8px;
}

.perc-no-data {
    background: rgba(120, 144, 156, 0.2);
    color: #546e7a;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .percentage-badge {
        font-size: 0.6rem;
        padding: 2px 4px;
        min-width: 25px;
    }
}

/* Corner count badge styling */
.corner-count {
            background: #17a2b8;
            color: white;
            padding: 1px 3px;
            border-radius: 2px;
            font-size: 0.6rem;
            font-weight: 600;
        }

        .corner-placeholder {
            color: #6c757d;
            font-weight: 500;
            font-size: 0.7rem;
        }

        .yellow-card {
            background: #ffc107;
            color: #000;
            padding: 1px 4px;
            border-radius: 2px;
            font-size: 0.6rem;
            font-weight: 600;
            min-width: 12px;
            text-align: center;
        }

        .red-card {
            background: #dc3545;
            color: #fff;
            padding: 1px 4px;
            border-radius: 2px;
            font-size: 0.6rem;
            font-weight: 600;
            min-width: 12px;
            text-align: center;
            margin-left: 2px;
        }

/* Average values styling */
.average-value {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 4px; /* 1px 3px'dan b�y�tt�m */
    border-radius: 3px;
    font-size: 0.67rem; /* 0.65'ten b�y�tt�m */
    font-weight: 600;
    display: inline-block;
    min-width: 28px; /* 25'ten b�y�tt�m */
    text-align: center;
    border: 1px solid rgba(25, 118, 210, 0.2);
}

.data-not-available {
    color: #6c757d;
    font-style: italic;
    font-size: 0.7rem;
}

/* =====================================================
   FLEXBOX LAYOUT SYSTEM FOR MATCHES TABLE (ORIGINAL)
===================================================== */

/* Table structure with flexbox layout - RESTORED */
.table-header,
.match-row,
.match-detail-row {
    display: flex;
    align-items: center;
    gap: 3px; /* 8px'den d���rd�m - kolonlar� yak�nla�t�rd�m */
    padding: 8px 12px;
    border-bottom: 1px solid #dee2e6;
}

.table-header {
    font-weight: 600;
    font-size: 0.8rem;
    background: #f8f9fa;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

/* Column specific widths and alignments */
.col-league {
    flex: 10; /* 4'ten 5'e ��kard�m - �ok daha geni� */
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.col-status,
.col-corner {
    flex: 0 0 56px;
    text-align: center;
}

.col-goals,
.col-corners,
.col-cards {
    flex: 1 1 0;
    text-align: center;
}

.col-stat {
    flex: 1 1 0;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .col-league {
        flex: 10;
    }
    .col-status,
    .col-corner {
        flex: 0 0 48px;
    }
    .col-goals,
    .col-corners,
    .col-cards {
        flex: 1 1 0;
    }
    .col-stat {
        flex: 1 1 0;
    }
}

@media (max-width: 992px) {
    .table-header,
    .match-row,
    .match-detail-row {
        font-size: 0.8rem;
        gap: 2px; /* 4px'den drdm - daha yakn */
        padding: 6px 8px;
    }
    .col-league {
        flex: 10;
    }
    .col-status,
    .col-corner {
        flex: 0 0 44px;
    }
    .col-goals,
    .col-corners,
    .col-cards {
        flex: 1 1 0;
    }
    .col-stat {
        flex: 1 1 0;
    }
}

@media (max-width: 768px) {
    .table-header,
    .match-row,
    .match-detail-row {
        font-size: 0.75rem;
        gap: 2px;
        padding: 4px 6px;
    }
    .col-status,
    .col-corner {
        flex: 0 0 40px;
    }
}

/* =====================================================
   MOBİL RESPONSIVE (576px ve altı)
===================================================== */
@media (max-width: 576px) {
    /* SADECE table header başlıklarını mobilde gizle */
    .table-header {
        display: none !important;
    }
}