/* Ligler Sayfası Stilleri */
.leagues-page {
    padding: 30px 0;
    background-color: #f8f9fa;
}

/* ===== Leagues: Palette & Motion Enhancements ===== */
/* Card improvements (more specific to avoid inline overrides) */
.leagues-list .league-card {
  position: relative;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  transition: box-shadow .2s ease, transform .15s ease, border-color .2s ease;
}
.leagues-list .league-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
  border-color: rgba(0,0,0,0.1);
}
.leagues-list .league-card::after {
  content: "";
  position: absolute; left: 0; top: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: width .35s ease;
}
.leagues-list .league-card:hover::after { width: 100%; }

/* Pill badges for category & status */
.pill { display:inline-flex; align-items:center; gap:8px; padding:6px 12px;
  border-radius:999px; font-weight:700; font-size:.85rem; line-height:1;
  background:#f7f9fc; border:1px solid #e6e9ef; box-shadow: 0 2px 6px rgba(0,0,0,.05);
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.pill:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.pill i { font-size:.9rem; opacity:.9; }
.pill-category { background:#f7f9ff; border-color:#e3eaf7; color:#244262; }
.pill-status { background:#f8fafb; border-color:#e7edf2; color:#2b3642; }
.pill-status.status-success { background:#e9f8ee; border-color:#cdeed8; color:#1e7a3e; box-shadow:0 2px 10px rgba(30,122,62,.08); }
.pill-status.status-secondary { background:#f1f3f5; border-color:#e3e6ea; color:#56616b; }
.pill-status.status-info { background:#e9f3ff; border-color:#cfe6ff; color:#155b9a; box-shadow:0 2px 10px rgba(21,91,154,.08); }
.pill-status.status-dark { background:#eceff3; border-color:#d7dbe0; color:#2b3642; }

/* Animated status dot glow aligned to palette */
.pill-status .fa-circle { font-size:.6rem; }
.pill-status.status-success .fa-circle { color:#1e7a3e; filter: drop-shadow(0 0 4px rgba(30,122,62,.45)); animation: statusPulseSuccess 2.2s ease-in-out infinite; }
.pill-status.status-info .fa-circle { color:#155b9a; filter: drop-shadow(0 0 4px rgba(21,91,154,.45)); animation: statusPulseInfo 2.2s ease-in-out infinite; }
.pill-status.status-secondary .fa-circle { color:#6c757d; }
.pill-status.status-dark .fa-circle { color:#2b3642; }

@keyframes statusPulseSuccess {
  0%,100% { filter: drop-shadow(0 0 0 rgba(30,122,62,0)); }
  50%      { filter: drop-shadow(0 0 6px rgba(30,122,62,.65)); }
}
@keyframes statusPulseInfo {
  0%,100% { filter: drop-shadow(0 0 0 rgba(21,91,154,0)); }
  50%      { filter: drop-shadow(0 0 6px rgba(21,91,154,.65)); }
}

/* Meta rows: clearer icons */
.leagues-list .league-meta i {
  width: 26px; height: 26px; display:inline-grid; place-items:center;
  border-radius: 8px; background: var(--light-bg); color: var(--primary);
  font-size: .9rem; box-shadow: 0 1px 3px rgba(0,0,0,.05);
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.leagues-list .league-meta i:hover { transform: translateY(-1px); }
.leagues-list .league-meta span { color:#2f3b4a; font-weight:600; }

/* Title link: palette hover */
.leagues-list .league-title a { color: inherit; text-decoration:none; }
.leagues-list .league-title a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* Action buttons motion & palette */
.leagues-list .league-actions .btn { transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease, background-color .2s ease; }
.leagues-list .league-actions .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(0,0,0,.08); }
.leagues-list .league-actions .btn-outline-primary:hover { background: var(--primary); color:#fff; border-color: var(--primary); }
.leagues-list .league-actions .btn-outline-warning:hover { background: var(--secondary); color:#fff; border-color: var(--secondary); }
.page-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.page-header h1:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background-color: #e74c3c;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.page-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.leagues-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Sidebar Stilleri */
.leagues-sidebar {
    width: 300px;
    background-color: #f1f5f9;
    padding: 20px 0;
    border-right: 1px solid #e6e9ec;
}

.league-tabs {
    display: flex;
    border-bottom: 1px solid #e6e9ec;
    margin-bottom: 15px;
}

.league-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.league-tab.active {
    color: #e74c3c;
    border-bottom: 3px solid #e74c3c;
}

.league-tab:hover {
    color: #e74c3c;
}

.league-list {
    display: none;
    max-height: 600px;
    overflow-y: auto;
}

.league-list.active {
    display: block;
}

.league-item {
    padding: 15px 20px;
    border-bottom: 1px solid #e6e9ec;
    cursor: pointer;
    transition: all 0.2s;
}

.league-item:hover {
    background-color: #e6e9ec;
}

.league-item.active {
    background-color: #e74c3c;
    color: #fff;
}

.league-item .league-name {
    font-weight: 900;
    font-size: 1.08rem;
    color: #3949ab;
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}

.league-item.active .league-name {
    border-radius: 3px;
    font-size: 0.75rem;
}

.league-item .league-type.normal {
    background-color: #3498db;
    color: #fff;
}

.league-item .league-type.tournament {
    background-color: #9b59b6;
    color: #fff;
}

.league-item .league-date {
    display: flex;
    align-items: center;
}

.league-item .league-date i {
    margin-right: 5px;
}

/* Ana İçerik Stilleri */
.league-content {
    flex: 1;
    padding: 30px;
}

.league-header {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: 1px solid #e6e9ec;
}

.league-header h2 {
    font-size: 2.2rem;
    color: #e74c3c;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px #e74c3c12;
}

.league-header {
    margin-bottom: 34px;
    padding-bottom: 18px;
    border-bottom: 2px solid #e74c3c22;
}

.league-info {
    gap: 19px;
    margin-bottom: 16px;
}

.league-type, .league-status, .league-season, .league-dates {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 22px;
    letter-spacing: 0.01em;
}
.league-type {
    background-color: #3949ab;
    color: #fff;
}
.league-type.tournament {
    background-color: #9b59b6;
}
.league-status {
    background-color: #2ecc71;
    color: #fff;
}
.league-status.upcoming {
    background-color: #ffb300;
    color: #fff;
}
.league-status.completed {
    background-color: #95a5a6;
    color: #fff;
}

.standings-container h3 {
    font-size: 1.7rem;
    color: #3949ab;
    font-weight: 800;
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e6e9ec;
    letter-spacing: 0.01em;
}

.standings-table th {
    background: linear-gradient(90deg, #e3e8fb 60%, #fff 100%);
    padding: 15px 18px;
    text-align: left;
    font-weight: 900;
    color: #3949ab;
    font-size: 1.07em;
    border-bottom: 2px solid #e6e9ec;
    letter-spacing: 0.01em;
}
.standings-table td {
    padding: 13px 18px;
    font-size: 1.04em;
    color: #2c3e50;
    font-weight: 600;
}

.league-item .league-name {
    font-weight: 900;
    font-size: 1.08rem;
    color: #3949ab;
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}
.league-item.active .league-name {
    color: #fff;
}

.btn-apply {
    display: inline-block;
    padding: 13px 26px;
    background: linear-gradient(90deg, #e74c3c 60%, #3949ab 100%);
    color: #fff;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.08em;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 10px #3949ab22;
    transition: background 0.18s, box-shadow 0.18s;
}
.btn-apply:hover {
    background: linear-gradient(90deg, #3949ab 60%, #e74c3c 100%);
    box-shadow: 0 4px 18px #e74c3c33;
}

.league-description {
    margin-bottom: 22px;
    color: #666;
    font-size: 1.08em;
    line-height: 1.7;
}

/* Responsive başlık */
@media (max-width: 600px) {
    .league-header h2 {
        font-size: 1.2rem;
    }
    .standings-container h3 {
        font-size: 1.1rem;
    }
    .btn-apply {
        font-size: 0.98em;
        padding: 9px 12px;
    }
}

.league-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.league-type, .league-status, .league-season, .league-dates {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.league-type {
    background-color: #3498db;
    color: #fff;
}

.league-type.tournament {
    background-color: #9b59b6;
}

.league-status {
    background-color: #2ecc71;
    color: #fff;
}

.league-status.upcoming {
    background-color: #f39c12;
}

.league-status.completed {
    background-color: #95a5a6;
}

.league-season, .league-dates {
    background-color: #f1f5f9;
    color: #7f8c8d;
}

.league-description {
    margin-bottom: 20px;
    color: #7f8c8d;
    line-height: 1.6;
}

.league-actions {
    margin-top: 20px;
}

.btn-apply {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-apply:hover {
    background-color: #c0392b;
}

/* Puan Durumu Stilleri */
.standings-container {
    margin-bottom: 40px;
}

.standings-container h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e6e9ec;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th {
    background-color: #f1f5f9;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #7f8c8d;
    border-bottom: 2px solid #e6e9ec;
}

.standings-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e6e9ec;
}

.standings-table tr:hover {
    background-color: #f8f9fa;
}

.team-info {
    display: flex;
    align-items: center;
}

.team-logo {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    object-fit: contain;
}

.team-name {
    font-weight: 500;
    color: #2c3e50;
}

.team-status {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 10px;
}

.team-status.active {
    background-color: #2ecc71;
    color: #fff;
}

.team-status.eliminated {
    background-color: #e74c3c;
    color: #fff;
}

.team-status.champion {
    background-color: #f1c40f;
    color: #2c3e50;
}

.team-status.runner_up {
    background-color: #95a5a6;
    color: #fff;
}

.last-matches {
    display: flex;
    gap: 5px;
}

.match-result {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
}

.match-result.win {
    background-color: #2ecc71;
    color: #fff;
}

.match-result.loss {
    background-color: #e74c3c;
    color: #fff;
}

.match-result.draw {
    background-color: #95a5a6;
    color: #fff;
}

/* Maçlar Stilleri */
.league-matches {
    margin-bottom: 40px;
}

.league-matches h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e6e9ec;
}

.matches-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.match-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.match-date {
    background-color: #f1f5f9;
    padding: 10px 15px;
    font-size: 0.85rem;
    color: #7f8c8d;
    display: flex;
    justify-content: space-between;
}

.match-teams {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}

.match-team-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    object-fit: contain;
}

.match-team-name {
    font-weight: 500;
    text-align: center;
    font-size: 0.9rem;
}

.match-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.match-score-numbers {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.match-score-separator {
    margin: 0 10px;
    color: #95a5a6;
}

.match-status {
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 20px;
}

.match-status.completed {
    background-color: #2ecc71;
    color: #fff;
}

.match-status.upcoming {
    background-color: #f39c12;
    color: #fff;
}

.match-status.live {
    background-color: #e74c3c;
    color: #fff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.match-details {
    text-align: center;
    padding: 10px;
    border-top: 1px solid #e6e9ec;
}

.match-details a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.match-details a:hover {
    text-decoration: underline;
}

/* Turnuva Ağacı Stilleri */
.tournament-bracket {
    margin-bottom: 40px;
}

.tournament-bracket h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e6e9ec;
}

.bracket-container {
    overflow-x: auto;
    padding: 20px 0;
}

.bracket {
    display: flex;
    justify-content: space-between;
    min-width: 800px;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bracket-round-title {
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
    color: #7f8c8d;
}

.bracket-match {
    margin: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e6e9ec;
}

.bracket-team {
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bracket-team.winner {
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 3px solid #2ecc71;
}

.bracket-team-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.bracket-team-score {
    font-weight: 700;
    color: #2c3e50;
}

/* Boş Durum Stilleri */
.no-league-selected {
    text-align: center;
    padding: 50px 0;
    color: #95a5a6;
}

.no-league-selected h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #7f8c8d;
}

.no-league-selected p {
    font-size: 1.1rem;
}

.no-data {
    text-align: center;
    padding: 30px 0;
    color: #95a5a6;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    .leagues-container {
        flex-direction: column;
    }
    
    .leagues-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e6e9ec;
    }
    
    .league-list {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .matches-list {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .league-content {
        padding: 20px;
    }
}

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

.league-content {
    animation: fadeIn 0.5s ease-out;
}

/* (Kategori Slider stilleri kaldırıldı) */
/* Leagues filters (header bölümü) */
.leagues-hero .leagues-filter {
    background: #fff;
    padding: 8px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.06);
}

/* Select kutularını modernleştir */
.leagues-hero .leagues-filter .form-select {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    border: 1px solid #e6e9ec;
    border-radius: 10px;
    height: 42px;
    padding: 8px 40px 8px 12px;
    font-weight: 600;
    color: #2c3e50;
    box-shadow: none;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.leagues-hero .leagues-filter .form-select:hover {
    border-color: #d6dae0;
}

.leagues-hero .leagues-filter .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.12);
    outline: none;
}

/* Buton hizalama ve yükseklik uyumu */
.leagues-hero .leagues-filter .btn {
    height: 42px;
    border-radius: 10px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Küçük ekranlarda kutuların tam genişlikte düzgün görünmesi */
@media (max-width: 768px) {
  .leagues-hero .leagues-filter {
    padding: 10px;
  }
  .leagues-hero .leagues-filter .form-select,
  .leagues-hero .leagues-filter .btn {
    width: 100%;
  }
}

/* ===== Trophy Hero (Animated Podium) ===== */
.trophy-hero { padding: 24px 0 8px; background: var(--light-bg); border-bottom: 1px solid rgba(0,0,0,0.06); }
.trophy-hero .trophy-wrap { display:flex; flex-direction:column; align-items:center; gap:14px; }
.trophy-hero .trophy-title { display:flex; align-items:center; gap:10px; font-weight:800; color: var(--dark); }
.trophy-hero .trophy-title i { color: var(--primary); filter: drop-shadow(0 2px 6px rgba(0,0,0,.08)); }

.podium { display:grid; grid-template-columns: 1fr 1fr 1fr; gap:14px; align-items:end; width:100%; max-width: 680px; }
.tier { display:flex; flex-direction:column; align-items:center; gap:10px; position:relative; }
.step { width: 100%; max-width: 180px; text-align:center; color:#fff; font-weight:900; border-radius: 10px 10px 0 0; box-shadow: 0 8px 20px rgba(0,0,0,.12); }

/* Heights to mimic real podium */
.tier-1 .step { height: 110px; background: linear-gradient(180deg, #ffd15a, #ffb300); }
.tier-2 .step { height: 80px; background: linear-gradient(180deg, #dfe6ee, #bfc9d6); }
.tier-3 .step { height: 65px; background: linear-gradient(180deg, #d9a97b, #b87439); }

/* Trophies */
.trophy { font-size: 44px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.18)); animation: floatY 2.8s ease-in-out infinite; }
.trophy-gold   { color: #ffbf00; text-shadow: 0 0 10px rgba(255,191,0,.35); animation-delay: .05s; }
.trophy-silver { color: #c0c8d2; text-shadow: 0 0 10px rgba(192,200,210,.35); animation-delay: .15s; }
.trophy-bronze { color: #cd7f32; text-shadow: 0 0 10px rgba(205,127,50,.35); animation-delay: .25s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Subtle shine effect */
.trophy-hero .trophy-wrap { position: relative; }
.trophy-hero .trophy-wrap::after {
  content: ""; position: absolute; top: 0; left: -20%; width: 60%; height: 100%;
  background: linear-gradient(75deg, transparent 0%, rgba(255,255,255,.25) 50%, transparent 100%);
  transform: skewX(-20deg); pointer-events:none; animation: shineSweep 6s ease-in-out infinite;
}
@keyframes shineSweep {
  0%   { transform: translateX(-120%) skewX(-20deg); opacity: 0; }
  35%  { opacity: 1; }
  60%  { transform: translateX(180%) skewX(-20deg); opacity: 0; }
  100% { transform: translateX(180%) skewX(-20deg); opacity: 0; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .trophy-hero { padding: 18px 0 6px; }
  .trophy { font-size: 38px; }
  .tier-1 .step { height: 90px; }
  .tier-2 .step { height: 68px; }
  .tier-3 .step { height: 56px; }
}
@media (max-width: 480px) {
  .podium { gap:10px; }
  .trophy { font-size: 32px; }
  .step { max-width: 120px; }
  .tier-1 .step { height: 76px; }
  .tier-2 .step { height: 58px; }
  .tier-3 .step { height: 48px; }
}

/* ===== Hero Title Sizing (without affecting card titles) ===== */
.leagues-hero .league-title { 
  font-size: clamp(2.1rem, 2.2vw + 1.2rem, 3.1rem);
  line-height: 1.1;
}
.trophy-hero .trophy-title {
  font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem);
}
.trophy-hero .trophy-title i { font-size: 1.2em; }
