/**
 * BBL Drawer Styles (v2)
 * ═══════════════════════════════════════════════════════════════════
 * Drawer canlı kartları için class-based stiller.
 *
 * BEM-like naming:
 *   .pg-card              → base kart (ortak)
 *   .pg-card--match       → varyant
 *   .pg-card__header      → kart içi element
 *   .pg-card__title--blue → element + varyant
 *
 * Bölümler:
 *   1. Animasyonlar (keyframes)
 *   2. Base & ortak class'lar
 *   3. EŞLEŞME kartı
 *   4. BAŞKAN TALEPLERİ kartı
 *   5. MÜZE & PERFORMANS kartı
 *   6. FİLTRE + FAVORİ quick actions
 *   7. Divider
 * ═══════════════════════════════════════════════════════════════════
 */

/* ──────────────────────────────────────────────────────────────────
   1. ANİMASYONLAR
   ────────────────────────────────────────────────────────────────── */

@keyframes pgDmcLivePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  50% {
    transform: scale(1.4);
    opacity: 0.8;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
}

@keyframes pgDmcLiveStripe {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes pgScoreFlash {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.3); filter: brightness(1.5); }
  100% { transform: scale(1); }
}

@keyframes pgQuestProgressPulse {
  0%, 100% { box-shadow: 0 0 8px  rgba(167, 139, 250, 0.5); }
  50%      { box-shadow: 0 0 18px rgba(167, 139, 250, 0.9); }
}

@keyframes pgMuseumShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes pgTrophyGlow {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.4));
  }
  50% {
    transform: translateY(-2px) scale(1.05);
    filter: drop-shadow(0 0 14px rgba(251, 191, 36, 0.7));
  }
}

/* ──────────────────────────────────────────────────────────────────
   2. BASE & ORTAK
   ────────────────────────────────────────────────────────────────── */

.pg-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.pg-card:active {
  transform: scale(0.98);
}

.pg-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.pg-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 6px 0;
}

/* ──────────────────────────────────────────────────────────────────
   3. EŞLEŞME KARTI
   ────────────────────────────────────────────────────────────────── */

.pg-card--match {
  background: linear-gradient(135deg,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(30, 41, 59, 0.85) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.pg-card--match:hover {
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.20);
}

.pg-card--match .pg-card__title {
  color: #60a5fa;
}

.pg-match__status {
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pg-match__live-dot {
  display: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pgDmcLivePulse 1.4s ease-in-out infinite;
}

.pg-match__live-stripe {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22c55e, transparent);
  background-size: 200% 100%;
  animation: pgDmcLiveStripe 2s linear infinite;
}

.pg-match__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pg-match__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.pg-match__logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
  flex-shrink: 0;
}

.pg-match__logo--mine { border: 2px solid #3b82f6; }
.pg-match__logo--opp  { border: 2px solid #ef4444; }

.pg-match__name {
  font-size: 9px;
  font-weight: 700;
  color: #cbd5e1;
  text-align: center;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg-match__scores {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pg-match__score {
  font-size: 24px;
  font-weight: 900;
  font-family: 'Yearbook Solid', monospace;
  line-height: 1;
}

.pg-match__score--mine {
  color: #3b82f6;
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.pg-match__score--opp {
  color: #ef4444;
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.pg-match__score-sep {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
}

.pg-match__result-badge {
  display: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

/* Skor flash animasyonu (JS tarafından class olarak eklenir) */
.pg-score-flash {
  animation: pgScoreFlash 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ──────────────────────────────────────────────────────────────────
   4. BAŞKAN TALEPLERİ KARTI
   ────────────────────────────────────────────────────────────────── */

.pg-card--quest {
  background: linear-gradient(135deg,
    rgba(76, 29, 149, 0.25) 0%,
    rgba(30, 41, 59, 0.85) 100%);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.pg-card--quest:hover {
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.25);
}

.pg-card--quest .pg-card__title {
  color: #a78bfa;
}

.pg-quest__bonus {
  display: none;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.pg-quest__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg-quest__progress-track {
  flex: 1;
  height: 8px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.pg-quest__progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #a78bfa, #7c3aed);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.5);
}

.pg-quest__progress-fill.pg-near-tier {
  animation: pgQuestProgressPulse 1.6s ease-in-out infinite;
}

.pg-quest__count {
  font-size: 13px;
  font-weight: 900;
  color: #e2e8f0;
  font-family: 'Yearbook Solid', monospace;
  white-space: nowrap;
}

.pg-quest__tier-info {
  display: none;
  font-size: 9px;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ──────────────────────────────────────────────────────────────────
   5. MÜZE & PERFORMANS KARTI
   ────────────────────────────────────────────────────────────────── */

.pg-card--museum {
  background: linear-gradient(135deg,
    rgba(120, 53, 15, 0.25) 0%,
    rgba(15, 23, 42, 0.95) 50%,
    rgba(120, 53, 15, 0.15) 100%);
  border: 1px solid rgba(251, 191, 36, 0.35);
  margin: 6px 0 8px;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.12);
  font-weight: 900;
}

.pg-card--museum:hover {
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.25);
  transform: translateY(-1px);
}

.pg-card--museum:active {
  transform: scale(0.98);
}

.pg-museum__shimmer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(251, 191, 36, 0.6),
    transparent);
  background-size: 200% 100%;
  animation: pgMuseumShimmer 3s linear infinite;
}

.pg-museum__title {
  color: #fbbf24;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

.pg-museum__hint {
  color: #64748b;
  font-size: 8px;
}

.pg-museum__trophies {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 4px;
  padding: 6px 2px 2px;
  flex-wrap: nowrap;
}

.pg-trophy {
  text-align: center;
  opacity: 0.25;
  flex: 1;
  min-width: 0;
  transition: transform 0.2s ease;
}

.pg-trophy.pg-has {
  opacity: 1;
  animation: pgTrophyGlow 2.5s ease-in-out infinite;
}

.pg-trophy:hover {
  transform: scale(1.1);
}

.pg-trophy__icon {
  font-size: 26px;
  line-height: 1;
}

.pg-trophy__count {
  font-size: 11px;
  font-weight: 900;
  margin-top: 2px;
  line-height: 1;
}

.pg-trophy__count--league    { color: #fbbf24; }
.pg-trophy__count--cup       { color: #f59e0b; }
.pg-trophy__count--cup-final { color: #a78bfa; }
.pg-trophy__count--silver    { color: #94a3b8; }
.pg-trophy__count--bronze    { color: #d97706; }
.pg-trophy__count--social    { color: #f97316; }

.pg-trophy__label {
  font-size: 7px;
  color: #64748b;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.pg-museum__empty {
  display: none;
  font-size: 10px;
  color: #64748b;
  text-align: center;
  padding: 4px;
  font-style: italic;
}

/* ──────────────────────────────────────────────────────────────────
   6. FİLTRE + FAVORİ QUICK ACTIONS
   ────────────────────────────────────────────────────────────────── */

.pg-quick-actions {
  display: flex;
  gap: 8px;
  padding: 0 0 8px;
}

.pg-quick-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.pg-quick-btn:active {
  transform: scale(0.96);
}

.pg-quick-btn__icon {
  font-size: 18px;
}

.pg-quick-btn__label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.pg-quick-btn--filter {
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.18) 0%,
    rgba(30, 41, 59, 0.85) 100%);
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.15);
}

.pg-quick-btn--filter .pg-quick-btn__icon {
  filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.6));
}

.pg-quick-btn--filter .pg-quick-btn__label {
  color: #93c5fd;
}

.pg-quick-btn--fav {
  background: linear-gradient(135deg,
    rgba(251, 191, 36, 0.18) 0%,
    rgba(30, 41, 59, 0.85) 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.15);
}

.pg-quick-btn--fav .pg-quick-btn__icon {
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

.pg-quick-btn--fav .pg-quick-btn__label {
  color: #fbbf24;
}

.pg-quick-btn__badge {
  display: none;
  position: absolute;
  top: 2px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: #ef4444;
  border-radius: 50%;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* ──────────────────────────────────────────────────────────────────
   7. DRAWER MENÜ ITEM (PİYASA RADAR, GÖZLEMLENEN TAKIMLAR vb.)
   ────────────────────────────────────────────────────────────────── */

.pg-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.pg-drawer-item__icon {
  font-size: 18px;
}

.pg-drawer-item__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #cbd5e1;
}

.pg-drawer-item__label--accent {
  color: #60a5fa;
}

/* ──────────────────────────────────────────────────────────────────
   8. ÇIKIŞ BUTONU (drawer en altı, vurgulu)
   ────────────────────────────────────────────────────────────────── */

.pg-drawer-logout {
  display: none; /* JS açacak (kullanıcı login olunca) */
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  margin: 8px 4px 12px;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(135deg,
    rgba(239, 68, 68, 0.15) 0%,
    rgba(127, 29, 29, 0.25) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.pg-drawer-logout:hover {
  background: linear-gradient(135deg,
    rgba(239, 68, 68, 0.25) 0%,
    rgba(127, 29, 29, 0.35) 100%);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fecaca;
}

.pg-drawer-logout:active {
  transform: scale(0.97);
}

.pg-drawer-logout__icon {
  font-size: 14px;
}

.pg-drawer-logout__name {
  font-size: 10px;
  font-weight: 600;
  color: #f87171;
  opacity: 0.8;
  text-transform: none;
  letter-spacing: normal;
}
