/* ============================================
   Select2 Özel Tema - Açık Gri
   ============================================ */

/* Select2 Container */
.select2-container--default .select2-selection--single {
  background-color: var(--bg-list) !important;
  border: 1px solid var(--line) !important;
  border-radius: 0.3rem !important;
  height: auto !important;
  padding: 0.5rem 0.85rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #ffffff !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  padding: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #888 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  right: 0.85rem !important;
  top: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--accent) transparent transparent transparent !important;
  border-width: 6px 5px 0 5px !important;
  margin-left: -5px !important;
  margin-top: -3px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent var(--accent) transparent !important;
  border-width: 0 5px 6px 5px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(238, 154, 27, 0.1) !important;
}

/* Dropdown */
.select2-dropdown {
  background-color: var(--bg-panel) !important;
  border: 1px solid var(--accent) !important;
  border-radius: 0.3rem !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.select2-container--default .select2-results__option {
  background-color: var(--bg-list) !important;
  color: #ffffff !important;
  font-size: 0.85rem !important;
  padding: 0.5rem 0.85rem !important;
  transition: all 0.2s ease !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: rgba(238, 154, 27, 0.15) !important;
  color: var(--accent) !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: rgba(200, 200, 200, 0.1) !important;
  color: #ccc !important;
}

.select2-container--default .select2-results__option[aria-selected=true]:hover {
  background-color: rgba(238, 154, 27, 0.1) !important;
  color: var(--accent) !important;
}

/* Search */
.select2-search--dropdown {
  background-color: var(--bg-panel) !important;
  padding: 0.5rem !important;
}

.select2-search--dropdown .select2-search__field {
  background-color: var(--bg-list) !important;
  border: 1px solid var(--line) !important;
  border-radius: 0.3rem !important;
  color: #ffffff !important;
  font-size: 0.85rem !important;
  padding: 0.5rem 0.85rem !important;
}

.select2-search--dropdown .select2-search__field:focus {
  border-color: var(--accent) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(238, 154, 27, 0.1) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field::placeholder {
  color: #888 !important;
}

/* No Results */
.select2-container--default .select2-results__message {
  background-color: var(--bg-list) !important;
  color: #888 !important;
  font-size: 0.85rem !important;
  padding: 0.75rem !important;
}

/* Loading */
.select2-container--default .select2-results__option--loading {
  color: #888 !important;
}

/* ============================================
   SekaToto - Tahminlerim Bölümü (Accordion Stili)
   ============================================ */

.sekatoto-my-predictions {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  height: fit-content;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sekatoto-my-predictions-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
}

.sekatoto-my-predictions-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sekatoto-my-predictions-title i {
  font-size: 1.1rem;
}

/* Hafta Seçici */
.sekatoto-week-selector {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sekatoto-week-selector label {
  font-size: 0.75rem;
  color: #999;
  font-weight: 500;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Hafta Özet Bilgisi */
.sekatoto-week-summary {
  background: rgba(238, 154, 27, 0.08);
  border: 1px solid rgba(238, 154, 27, 0.2);
  border-radius: 0.35rem;
  padding: 0.65rem 0.85rem;
  margin-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.sekatoto-week-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
}

.sekatoto-week-summary-label {
  font-size: 0.65rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 500;
}

.sekatoto-week-summary-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

.sekatoto-week-summary-value.success {
  color: #28a745;
}

.sekatoto-week-summary-divider {
  width: 1px;
  height: 2rem;
  background: rgba(255, 255, 255, 0.1);
}

.sekatoto-week-select {
  width: 100%;
  padding: 0.5rem 0.85rem;
  background: var(--bg-list);
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ee9a1b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}

.sekatoto-week-select:hover {
  border-color: var(--accent);
  background-color: rgba(238, 154, 27, 0.05);
}

.sekatoto-week-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(238, 154, 27, 0.1);
}

.sekatoto-week-select option {
  background: var(--bg-panel);
  color: #ffffff;
  padding: 0.5rem;
}

/* Tahminler Grid - Scroll Yok */
.sekatoto-predictions-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Tahmin Kartı - Accordion Stili */
.sekatoto-prediction-card {
  background: var(--bg-list);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  margin-top: -1px;
}

.sekatoto-prediction-card:first-child {
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
  margin-top: 0;
}

.sekatoto-prediction-card:last-child {
  border-bottom-left-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

.sekatoto-prediction-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
  transition: all 0.2s ease;
}

.sekatoto-prediction-card:hover {
  border-color: rgba(238, 154, 27, 0.3);
}

.sekatoto-prediction-card.open {
  border-color: var(--accent);
  z-index: 1;
}

.sekatoto-prediction-card.open::before {
  background: var(--accent);
  width: 3px;
}

/* Kart Header - Tıklanabilir */
.sekatoto-prediction-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.sekatoto-prediction-card-header:hover {
  background: rgba(238, 154, 27, 0.05);
}

.sekatoto-prediction-match {
  flex: 1;
  min-width: 0;
}

.sekatoto-prediction-teams {
  font-size: 0.8rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.3;
  word-break: break-word;
}

/* Header Sağ Taraf */
.sekatoto-prediction-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

/* Durum Badge - Daha Küçük */
.sekatoto-status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 0.2rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.sekatoto-status-badge i {
  font-size: 0.65rem;
}

.sekatoto-status-badge.beklemede {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.sekatoto-status-badge.dogru {
  background: rgba(40, 167, 69, 0.15);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.sekatoto-status-badge.yanlis {
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Toggle Icon */
.sekatoto-toggle-icon {
  font-size: 0.75rem;
  color: #888;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

.sekatoto-prediction-card.open .sekatoto-toggle-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Kart Body - Gizli/Açık */
.sekatoto-prediction-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 0.85rem;
}

.sekatoto-prediction-card.open .sekatoto-prediction-card-body {
  padding: 0.5rem 0.85rem 0.75rem;
}

.sekatoto-prediction-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sekatoto-prediction-info-row:last-child {
  border-bottom: none;
}

/* Kazanç satırının altındaki border'ı kaldır */
.sekatoto-prediction-info-row:has(+ .sekatoto-prediction-info-row:last-child) {
  border-bottom: none;
}

/* Eğer kazanç satırı son satırsa zaten border yok */
.sekatoto-prediction-info-row:nth-last-child(2):has(~ .sekatoto-prediction-info-row:last-child .sekatoto-prediction-info-label .fa-money-bill-wave) {
  border-bottom: none;
}

.sekatoto-prediction-info-label {
  color: #888;
  font-weight: 400;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.sekatoto-prediction-info-label i {
  font-size: 0.7rem;
  opacity: 0.7;
}

.sekatoto-prediction-info-value {
  color: #ffffff;
  font-weight: 500;
  font-size: 0.75rem;
  text-align: right;
}

.sekatoto-prediction-info-value.highlight {
  color: var(--accent);
  font-weight: 600;
}

.sekatoto-prediction-info-value.success {
  color: #28a745;
  font-weight: 600;
}

.sekatoto-prediction-info-value.danger {
  color: #dc3545;
}

/* Sonuç Display */
.sekatoto-result-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  background: rgba(238, 154, 27, 0.08);
  border-left: 2px solid var(--accent);
  border-radius: 0.2rem;
  margin-top: 0.4rem;
}

.sekatoto-result-label {
  font-size: 0.7rem;
  color: #aaa;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sekatoto-result-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* Boş Durum */
.sekatoto-no-predictions {
  text-align: center;
  padding: 2rem 1rem;
  color: #888;
}

.sekatoto-no-predictions-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.3;
  color: var(--accent);
}

.sekatoto-no-predictions-text {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #aaa;
  font-weight: 400;
}

/* Loading State */
.sekatoto-predictions-loading {
  text-align: center;
  padding: 2rem 1rem;
}

.sekatoto-predictions-loading .spinner-border {
  width: 1.5rem;
  height: 1.5rem;
  border-width: 2px;
  color: var(--accent);
}

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

.sekatoto-prediction-card {
  animation: fadeInUp 0.25s ease-out;
  animation-fill-mode: both;
}

.sekatoto-prediction-card:nth-child(1) { animation-delay: 0.03s; }
.sekatoto-prediction-card:nth-child(2) { animation-delay: 0.06s; }
.sekatoto-prediction-card:nth-child(3) { animation-delay: 0.09s; }
.sekatoto-prediction-card:nth-child(4) { animation-delay: 0.12s; }
.sekatoto-prediction-card:nth-child(5) { animation-delay: 0.15s; }
.sekatoto-prediction-card:nth-child(n+6) { animation-delay: 0.18s; }

/* ============================================
   Responsive Tasarım
   ============================================ */

@media (max-width: 768px) {
  .sekatoto-my-predictions {
    padding: 0.85rem;
  }
  
  .sekatoto-my-predictions-header {
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
  }
  
  .sekatoto-my-predictions-title {
    font-size: 0.95rem;
  }
  
  .sekatoto-week-select {
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
    padding-right: 2rem;
  }
  
  .sekatoto-prediction-card-header {
    padding: 0.6rem 0.75rem;
  }
  
  .sekatoto-prediction-teams {
    font-size: 0.75rem;
  }
  
  .sekatoto-prediction-league {
    font-size: 0.68rem;
  }
  
  .sekatoto-status-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
  }
}

@media (max-width: 576px) {
  .sekatoto-my-predictions {
    padding: 0.75rem;
  }
  
  .sekatoto-my-predictions-title {
    font-size: 0.9rem;
  }
  
  .sekatoto-my-predictions-title i {
    font-size: 1rem;
  }
  
  .sekatoto-week-select {
    font-size: 0.75rem;
    padding: 0.4rem 0.65rem;
    padding-right: 1.9rem;
  }
  
  .sekatoto-prediction-card-header {
    padding: 0.55rem 0.65rem;
  }
  
  .sekatoto-prediction-teams {
    font-size: 0.72rem;
  }
  
  .sekatoto-prediction-info-row {
    font-size: 0.7rem;
    padding: 0.25rem 0;
  }
  
  .sekatoto-prediction-info-label {
    font-size: 0.68rem;
  }
  
  .sekatoto-prediction-info-value {
    font-size: 0.7rem;
  }
  
  .sekatoto-status-badge {
    font-size: 0.58rem;
    padding: 0.18rem 0.35rem;
  }
  
  .sekatoto-toggle-icon {
    font-size: 0.7rem;
  }
  
  .sekatoto-result-display {
    padding: 0.35rem 0.45rem;
  }
  
  .sekatoto-result-label {
    font-size: 0.65rem;
  }
  
  .sekatoto-result-value {
    font-size: 0.75rem;
  }
}

@media (max-width: 400px) {
  .sekatoto-my-predictions {
    padding: 0.65rem;
  }
  
  .sekatoto-prediction-card-header {
    padding: 0.5rem 0.6rem;
  }
  
  .sekatoto-prediction-teams {
    font-size: 0.7rem;
  }
  
  .sekatoto-prediction-header-right {
    gap: 0.35rem;
  }
}
