/* PrediCosta - Predictions CSS
 * Modern, responsive ve profesyonel tasarım
 */

 :root {
    --primary-color: #1e3a8a;
    --primary-light: #2563eb;
    --primary-dark: #172554;
    --secondary-color: #0ea5e9;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --hover-bg: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-full: 9999px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  }
  
  /* Typography */
  .pred-heading {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
  }
  
  .pred-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
  }
  
  /* Match Card Styles */
  .match-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    position: relative;
  }
  
  .match-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  
  .match-card-live {
    border-left: 3px solid var(--danger-color);
  }
  
  .match-card-upcoming {
    border-left: 3px solid var(--primary-light);
  }
  
  .match-card-completed {
    border-left: 3px solid var(--success-color);
  }
  
  .match-card-header {
    display: none;
}
  
  .match-card-league {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
  }
  
  .match-card-league .flag {
    margin-right: 0.5rem;
    width: 1.25rem;
    height: auto;
  }
  
  .match-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
  }
  
  .match-card-date i {
    margin-right: 0.375rem;
    font-size: 0.875rem;
  }
  
  .match-card-body {
    padding: 1rem;
    position: relative;
  }
  
  .match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 0.5rem;
  }
  
  .match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    text-align: center;
  }
  
  .match-team-logo {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.5rem;
    object-fit: contain;
  }
  
  
  
  .match-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
  }
  
  .match-score.live {
    color: var(--danger-color);
  }
  
  .match-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
  }
  
  .match-status {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
  }
  
  .match-status-live {
    background-color: var(--danger-color);
    color: white;
    animation: pulse 1.5s infinite;
  }
  
  .match-status-upcoming {
    background-color: var(--primary-light);
    color: white;
  }
  
  .match-status-completed {
    background-color: var(--success-color);
    color: white;
  }
  
  @keyframes pulse {
    0% {
      opacity: 1;
    }
    50% {
      opacity: 0.7;
    }
    100% {
      opacity: 1;
    }
  }

  .match-datetime {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    min-width: 60px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0 0.5rem;
}

.match-datetime span {
    font-weight: 600;
    font-size: 0.875rem;
}
  
  .match-details {
    display: flex;
    justify-content: space-between;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--border-color);
  }
  
  .match-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 0 0.5rem;
    position: relative;
  }
  
  .match-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: var(--border-color);
  }
  
  .match-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
  }
  
  .match-stat-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Prediction Tag */
  .pred-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
  }
  
  .pred-tag-primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-light);
  }
  
  .pred-tag-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
  }
  
  .pred-tag-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
  }
  
  .pred-tag-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
  }
  
  .pred-tag i {
    margin-right: 0.25rem;
    font-size: 0.875rem;
  }
  
  /* Filters and Controls */
  .pred-filters {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
  }
  
  .pred-filter-group {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
  }
  
  .pred-filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 0.5rem;
    white-space: nowrap;
  }
  
  .pred-select, .pred-input {
    padding: 0.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--light-color);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: border-color var(--transition-fast);
    flex: 1;
  }
  
  .pred-select:focus, .pred-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  }
  
  .pred-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
  }
  
  .pred-btn i {
    margin-right: 0.375rem;
  }
  
  .pred-btn-primary {
    background-color: var(--primary-color);
    color: white;
  }
  
  .pred-btn-primary:hover {
    background-color: var(--primary-dark);
  }
  
  .pred-btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
  }
  
  .pred-btn-outline:hover {
    background-color: var(--light-color);
    color: var(--text-primary);
  }
  
  .pred-btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .pred-btn-icon i {
    margin-right: 0;
    font-size: 1rem;
  }
  
  /* Date Navigator */
  .date-navigator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);

    /* Scrollbar gizleme */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE, Edge */
}

/* Chrome, Safari, Opera için */
.date-navigator::-webkit-scrollbar {
    display: none;
}

  
  .date-item {
    padding: 0.75rem 0.5rem;
    min-width: 3.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent;
    flex: 1;
  }
  
  .date-item:hover {
    background-color: var(--hover-bg);
  }
  
  .date-item.active {
    border-bottom-color: var(--primary-light);
    font-weight: 600;
    color: var(--primary-light);
  }
  
  .date-day {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
  }
  
  .date-weekday {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
  }
  
  /* League Accordion */
  .league-accordion {
    margin-bottom: 1.5rem;
  }
  
  .league-item {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background-color: var(--card-bg);
}
  
  .league-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
    background-color: #6ebec5;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.league-header:hover {
    background-color: #85d2d9;
}

/* Bayrak stilini düzelt */
.league-flag {
    margin-right: 1rem;
    width: 24px;
    height: 16px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    display: inline-block;
    vertical-align: middle;
  }
  
  .league-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    flex: 1;
}
  
  .league-count {
    background-color: var(--primary-light);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
  }
  
  .league-arrow {
    transition: transform var(--transition-normal);
  }
  
  .league-header[aria-expanded="true"] .league-arrow {
    transform: rotate(180deg);
  }
  
  .league-matches {
    padding: 0;
    transition: height 0.3s ease;
    overflow: hidden;
}

#matchesContainer:not(.view-list) .match-card {
  margin-bottom: 0.75rem;
  margin-left: 0.75rem;
  margin-right: 0.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

#matchesContainer:not(.view-list) .match-card:last-child {
  margin-bottom: 0.75rem;
}

#matchesContainer:not(.view-list) .league-matches {
  padding: 0.75rem 0;
}

/* Liste görünümü */
#matchesContainer.view-list .match-card {
  margin-bottom: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  border-bottom: 1px solid var(--border-color);
}

#matchesContainer.view-list .match-card:last-child {
  border-bottom: none;
}

#matchesContainer.view-list .match-card-header {
  padding: 0.5rem 1rem;
  background-color: transparent;
  border-bottom: none;
}

#matchesContainer.view-list .match-card-body {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
}

#matchesContainer.view-list .match-team {
  flex-direction: row;
  width: 30%;
  text-align: left;
  justify-content: flex-start;
  padding: 0;
}

#matchesContainer.view-list .match-teams {
  flex: 1;
  padding: 0.5rem 0;
}

#matchesContainer.view-list .match-datetime {
  width: 50px;
  min-width: 50px;
}

#matchesContainer.view-list .match-details {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  margin-left: 1rem;
}

#matchesContainer.view-list .match-team:nth-child(3) {
  text-align: right;
  justify-content: flex-end;
  flex-direction: row-reverse;
}

#matchesContainer.view-list .match-team-logo {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0;
  margin-right: 0.5rem;
  margin-left: 0.5rem;
}

#matchesContainer.view-list .match-score-container {
  min-width: 60px;
  padding: 0.25rem;
}

#matchesContainer.view-list .match-team-name {
  font-size: 0.75rem;
}

/* View Toggle Butonları */
#viewToggle .pred-btn {
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#viewToggle .pred-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Dark Mode uyumluluğu için */
.dark-mode .league-header {
  background-color: var(--dark-color);
}

.dark-mode .league-header:hover {
  background-color: var(--sidebar-hover);
}


  
  /* Skeleton Loader */
  .skeleton-loader {
    animation: skeleton-loading 1.5s ease infinite;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: var(--radius-sm);
  }
  
  @keyframes skeleton-loading {
    0% {
      background-position: 200% 0;
    }
    100% {
      background-position: -200% 0;
    }
  }
  
  .skeleton-match-card {
    height: 160px;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
  }
  
  .skeleton-filter {
    height: 40px;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Tooltips */
  .tooltip {
    position: relative;
    display: inline-block;
  }
  
  .tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    font-size: 0.75rem;
    pointer-events: none;
  }
  
  .tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
  }
  
  /* Stats Bars */
  .stats-bar {
    height: 0.375rem;
    width: 100%;
    background-color: var(--light-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 0.25rem;
  }
  
  .stats-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
  }
  
  .stats-bar-home {
    background-color: var(--primary-light);
  }
  
  .stats-bar-away {
    background-color: var(--secondary-color);
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    .match-teams {
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      margin-bottom: 0.5rem;
      gap: 0.5rem;
  }
  
  .match-team {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 33%;
      text-align: center;
      padding: 0 0.25rem;
  }
    
    .match-team:last-child {
      flex-direction: row-reverse;
      text-align: right;
    }
    
    .match-team-name {
      font-weight: 600;
      font-size: 0.8rem;
      color: var(--text-primary);
      max-width: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-align: center;
  }
  
  .match-score-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 0.25rem 0.5rem;
      background-color: var(--light-color);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-sm);
      min-width: 70px;
      text-align: center;
  }
    
    .match-score-container {
      margin: 0.5rem 0;
      width: 80%;
    }
    
    .pred-filters {
      flex-direction: column;
      align-items: stretch;
    }
    
    .pred-filter-group {
      width: 100%;
    }
    
    .date-navigator {
      padding-bottom: 0.25rem;
    }
    
    .date-item {
      min-width: 3rem;
      padding: 0.5rem 0.375rem;
    }
    
    .date-day {
      font-size: 1rem;
    }
    
    .date-weekday {
      font-size: 0.625rem;
    }
  }
  
  /* Dark Mode Styles */
  .dark-mode {
    --card-bg: #1e293b;
    --light-color: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #475569;
    --hover-bg: #334155;
  }
  
  .dark-mode .match-card {
    background-color: var(--card-bg);
  }
  
  .dark-mode .pred-btn-outline {
    color: var(--text-secondary);
  }
  
  .dark-mode .pred-btn-outline:hover {
    background-color: var(--light-color);
    color: var(--text-primary);
  }
  
  /* Utility Classes */
  .text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .highlight {
    color: var(--primary-light);
    font-weight: 600;
  }
  
  .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
  }
  
  .badge-primary {
    background-color: var(--primary-light);
    color: white;
  }
  
  .badge-success {
    background-color: var(--success-color);
    color: white;
  }
  
  .badge-warning {
    background-color: var(--warning-color);
    color: white;
  }
  
  .badge-danger {
    background-color: var(--danger-color);
    color: white;
  }
  
  .badge-outline {
    background-color: transparent;
    border: 1px solid currentColor;
  }
  
  /* Special Match Cards */
  .featured-match {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(37, 99, 235, 0.3);
  }
  
  .featured-match::before {
    content: 'Featured';
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    background-color: var(--primary-light);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    z-index: 2;
  }

  @media (max-width: 768px) {
    .match-datetime {
        width: 40px;
        min-width: 40px;
        font-size: 0.75rem;
    }
    
    .match-team-name {
        font-size: 0.75rem;
    }
    
    .match-team-logo {
        width: 2rem;
        height: 2rem;
    }
    
    .match-score-container {
        min-width: 60px;
        padding: 0.25rem;
    }
}

/* Ekstra mobil düzenlemeler */
@media (max-width: 576px) {
    .match-datetime {
        width: 30px;
        min-width: 30px;
    }
    
    .match-team-name {
        font-size: 0.7rem;
    }
    
    .match-score {
        font-size: 0.9rem;
    }
}