/* =========================================
   TESL Arena Frontend Base Styles (front.css)
   ========================================= */

/* Reset & Base */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body.tesl-body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #020617 0, #020617 35%, #020617 60%, #020617 100%);
    color: #e5e7eb;
    min-height: 100vh;
}

/* Layout */

.tesl-main {
    padding-top: 64px;
    padding-bottom: 40px;
}

.tesl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tesl-section {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Header */

.tesl-header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: linear-gradient(to bottom, rgba(15,23,42,0.98), rgba(15,23,42,0.9), rgba(15,23,42,0.85), transparent);
    border-bottom: 1px solid rgba(30,64,175,0.35);
}

.tesl-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

/* Logo */

.tesl-logo-wrap {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #e5e7eb;
    gap: .6rem;
}

.tesl-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: .9rem;
    background: radial-gradient(circle at top left, #22d3ee, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    box-shadow: 0 10px 25px rgba(15,23,42,0.9);
}

.tesl-logo-texts {
    display: flex;
    flex-direction: column;
}

.tesl-logo-title {
    font-size: .95rem;
    font-weight: 600;
}

.tesl-logo-sub {
    font-size: .7rem;
    color: #9ca3af;
}

/* Nav */

.tesl-nav {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex: 1;
    justify-content: center;
}

.tesl-nav-link {
    position: relative;
    font-size: .8rem;
    color: #9ca3af;
    text-decoration: none;
    padding: .3rem .4rem;
    border-radius: .4rem;
    transition: color .15s ease, background .15s ease;
}

.tesl-nav-link::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: .15rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(to right, #22d3ee, #6366f1);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
}

.tesl-nav-link:hover {
    color: #e5e7eb;
    background: rgba(15,23,42,0.6);
}

.tesl-nav-link:hover::after {
    transform: scaleX(1);
}

/* Header right */

.tesl-header-right {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.tesl-social-pill {
    font-size: .75rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    text-decoration: none;
    color: #bfdbfe;
    border: 1px solid rgba(37,99,235,0.7);
    background: rgba(15,23,42,0.9);
    backdrop-filter: blur(8px);
    transition: background .15s ease, border-color .15s ease, transform .08s ease;
}

.tesl-social-pill:hover {
    background: rgba(30,64,175,0.9);
    border-color: rgba(96,165,250,0.9);
    transform: translateY(-1px);
}

/* Buttons */

.tesl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .55rem;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: .8rem;
    padding: .45rem .95rem;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .08s ease;
    white-space: nowrap;
}

.tesl-btn:hover {
    transform: translateY(-1px);
}

.tesl-btn-primary {
    background: linear-gradient(to right, #2563eb, #4f46e5);
    color: #f9fafb;
    border-color: rgba(37,99,235,0.9);
    box-shadow: 0 12px 30px rgba(30,64,175,0.7);
}

.tesl-btn-primary:hover {
    background: linear-gradient(to right, #1d4ed8, #4338ca);
}

.tesl-btn-primary-outline {
    background: transparent;
    color: #bfdbfe;
    border-color: rgba(59,130,246,0.9);
}

.tesl-btn-primary-outline:hover {
    background: rgba(37,99,235,0.15);
}

.tesl-btn-ghost {
    background: rgba(15,23,42,0.85);
    color: #e5e7eb;
    border-color: rgba(55,65,81,0.9);
}

.tesl-btn-ghost:hover {
    background: rgba(31,41,55,0.95);
}

.tesl-btn-small {
    font-size: .72rem;
    padding: .3rem .7rem;
}

/* Section headers */

.tesl-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .8rem;
}

.tesl-section-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.tesl-section-sub {
    font-size: .78rem;
    color: #9ca3af;
    margin-top: .2rem;
}

/* Cards */

.tesl-card {
    border-radius: .9rem;
    border: 1px solid rgba(31,41,55,1);
    background: radial-gradient(circle at top left, rgba(15,23,42,1), rgba(15,23,42,0.98));
    box-shadow: 0 18px 45px rgba(0,0,0,0.75);
    padding: .8rem .9rem;
}

.tesl-card-title {
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .4rem;
}

.tesl-card-body {
    font-size: .8rem;
}

.tesl-card-kicker {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9ca3af;
    margin-bottom: .18rem;
}

.tesl-card-meta-line {
    font-size: .75rem;
    color: #9ca3af;
    margin-bottom: .2rem;
}

/* Card row: ana sayfadaki kartlar için grid */
.tesl-card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

/* Grid for dashboard (kullanılıyorsa) */

.tesl-grid-dashboard {
    display: grid;
    grid-template-columns: minmax(0,2.1fr) minmax(0,1.2fr);
    gap: 1rem;
}

/* Genel layout grid – index alt kısmında kullanılıyor */
.tesl-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
    gap: 1rem;
}

/* Responsive ayarlar */

@media (max-width: 900px) {
    .tesl-grid-dashboard {
        grid-template-columns: minmax(0,1fr);
    }

    .tesl-layout-grid {
        grid-template-columns: minmax(0,1fr);
    }
}

/* Kart satırı genel (zaten var ama emin olalım) */
.tesl-card-row {
    display: grid;
    gap: 1rem;
}

/* Matchmaking blokları: küçük ekranda 1, tablet + desktop'ta 2x2 görünüm */
.tesl-card-row-mm {
    grid-template-columns: repeat(1, minmax(0,1fr));
}

@media (min-width: 768px) {
    .tesl-card-row-mm {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (min-width: 1100px) {
    .tesl-card-row-mm {
        grid-template-columns: repeat(4, minmax(0,1fr));
    }
}

/* Turnuva kartları: tablet'te 2, büyük ekranda 3 kolon */
.tesl-card-row-tournaments {
    grid-template-columns: repeat(1, minmax(0,1fr));
}

@media (min-width: 768px) {
    .tesl-card-row-tournaments {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (min-width: 1100px) {
    .tesl-card-row-tournaments {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

/* Lider pano / skin / topluluk: tablet ve üstü 3 kolon */
.tesl-card-row-info {
    grid-template-columns: repeat(1, minmax(0,1fr));
}

@media (min-width: 900px) {
    .tesl-card-row-info {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

/* Stats row (dashboard içi) */

.tesl-stat-row {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: .75rem;
    margin-top: .8rem;
}

@media (max-width: 800px) {
    .tesl-stat-row {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

.tesl-stat-card {
    border-radius: .75rem;
    border: 1px solid rgba(30,64,175,0.7);
    background: radial-gradient(circle at top left, rgba(37,99,235,0.24), rgba(15,23,42,0.98));
    padding: .55rem .7rem;
    box-shadow: 0 10px 25px rgba(15,23,42,0.85);
}

.tesl-stat-label {
    font-size: .7rem;
    color: #9ca3af;
    margin-bottom: .18rem;
}

.tesl-stat-value {
    font-size: .95rem;
    font-weight: 600;
}

/* Quick actions */

.tesl-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: .75rem;
    margin-top: .5rem;
}

.tesl-quick-link {
    text-decoration: none;
    border-radius: .8rem;
    border: 1px solid rgba(31,41,55,1);
    background: rgba(15,23,42,0.98);
    padding: .65rem .7rem;
    font-size: .8rem;
    color: #e5e7eb;
    transition: border-color .15s ease, background .15s ease, transform .08s ease, box-shadow .15s ease;
}

.tesl-quick-link:hover {
    border-color: rgba(96,165,250,0.9);
    background: radial-gradient(circle at top left, rgba(37,99,235,0.2), rgba(15,23,42,0.98));
    transform: translateY(-1px);
    box-shadow: 0 14px 35px rgba(15,23,42,0.8);
}

.tesl-quick-link-title {
    font-size: .86rem;
    font-weight: 600;
    margin-bottom: .15rem;
}

/* List basic */

.tesl-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tesl-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .4rem 0;
    border-bottom: 1px solid rgba(31,41,55,1);
    font-size: .8rem;
}

.tesl-list-item:last-child {
    border-bottom: none;
}

/* Forms */

.tesl-form-group {
    margin-bottom: .7rem;
}

.tesl-form-group label {
    display: block;
    font-size: .78rem;
    margin-bottom: .22rem;
    color: #e5e7eb;
}

.tesl-input,
.tesl-form-group select,
.tesl-form-group textarea {
    width: 100%;
    border-radius: .45rem;
    border: 1px solid rgba(55,65,81,1);
    background: rgba(15,23,42,0.95);
    padding: .45rem .5rem;
    font-size: .8rem;
    color: #e5e7eb;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.tesl-input:focus,
.tesl-form-group select:focus,
.tesl-form-group textarea:focus {
    border-color: rgba(59,130,246,0.9);
    box-shadow: 0 0 0 1px rgba(37,99,235,0.4);
    background: rgba(15,23,42,1);
}

.tesl-help-text {
    font-size: .7rem;
    color: #9ca3af;
    margin-top: .18rem;
}

/* Alerts */

.tesl-alert {
    border-radius: .6rem;
    padding: .5rem .65rem;
    font-size: .78rem;
    margin-bottom: .7rem;
}

.tesl-alert-error {
    background: rgba(127,29,29,0.25);
    border: 1px solid rgba(248,113,113,0.7);
    color: #fecaca;
}

.tesl-alert-success {
    background: rgba(6,95,70,0.25);
    border: 1px solid rgba(45,212,191,0.7);
    color: #a7f3d0;
}

/* Badges */

.tesl-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: .7rem;
    padding: .2rem .55rem;
    border: 1px solid rgba(55,65,81,1);
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
}

.tesl-badge-success {
    border-color: rgba(34,197,94,0.8);
    color: #bbf7d0;
    background: rgba(22,101,52,0.4);
}

.tesl-badge-warning {
    border-color: rgba(234,179,8,0.8);
    color: #fef9c3;
    background: rgba(133,77,14,0.45);
}

.tesl-badge-muted {
    border-color: rgba(75,85,99,1);
    color: #e5e7eb;
    background: rgba(31,41,55,0.9);
}

.tesl-badge-neutral {
    border-color: rgba(55,65,81,1);
    color: #e5e7eb;
    background: rgba(17,24,39,0.95);
}

/* Basic typography */

a {
    color: #93c5fd;
}

a:hover {
    color: #bfdbfe;
}

/* ===========================
   HERO (anasayfa üst alan)
   =========================== */

.tesl-hero {
    margin-top: 1.6rem;
    margin-bottom: 1.8rem;
}

.tesl-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.tesl-hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .75rem;
}

.tesl-hero-kicker {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .35rem;
    font-size: .75rem;
    color: #a5b4fc;
    padding: .18rem .55rem;
    border-radius: 999px;
    border: 1px solid rgba(55,65,81,1);
    background: radial-gradient(circle at left, rgba(59,130,246,0.25), rgba(15,23,42,0.95));
}

.tesl-hero-title {
    font-size: 1.8rem;
    line-height: 1.25;
    font-weight: 700;
    margin: 0;
}

.tesl-hero-gradient {
    display: block;
    background: linear-gradient(to right, #22d3ee, #4f46e5, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tesl-hero-sub {
    font-size: .86rem;
    color: #9ca3af;
    max-width: 34rem;
}

.tesl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: .4rem;
}

.tesl-hero-meta {
    margin-top: .35rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .72rem;
    color: #9ca3af;
}

/* Hero sağ kart */

.tesl-hero-right {
    display: flex;
    align-items: stretch;
}

.tesl-hero-card {
    border-radius: 1rem;
    border: 1px solid rgba(30,64,175,0.85);
    background: radial-gradient(circle at top, rgba(30,64,175,0.6), rgba(15,23,42,0.98));
    padding: .85rem .9rem;
    width: 100%;
    box-shadow: 0 20px 45px rgba(15,23,42,1);
}

.tesl-hero-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .6rem;
}

.tesl-pill-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    padding: .18rem .55rem;
    border-radius: 999px;
    background: rgba(37,99,235,0.9);
    color: #e5e7eb;
    border: 1px solid rgba(191,219,254,0.9);
}

.tesl-hero-card-title {
    font-size: .9rem;
    font-weight: 600;
    margin-top: .25rem;
}

.tesl-live-tag {
    font-size: .75rem;
    color: #fecaca;
}

/* Mini maç grid */

.tesl-mini-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .6rem;
    margin-bottom: .7rem;
}

@media (max-width: 640px) {
    .tesl-hero-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .tesl-mini-grid {
        grid-template-columns: minmax(0,1fr);
    }
}

.tesl-mini-card {
    border-radius: .75rem;
    border: 1px solid rgba(15,23,42,1);
    background: rgba(15,23,42,0.95);
    padding: .5rem .55rem;
    font-size: .78rem;
}

.tesl-mini-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .74rem;
    color: #9ca3af;
    margin-bottom: .25rem;
}

.tesl-team-vs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .15rem;
}

.tesl-team-vs span:last-child {
    font-weight: 600;
}

.tesl-hero-card-footer {
    border-top: 1px solid rgba(30,64,175,0.85);
    padding-top: .5rem;
    margin-top: .3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    font-size: .75rem;
    color: #d1d5db;
}

/* Notification Bell & Dropdown
   ============================ */

.tesl-header-item.tesl-notif {
    position: relative;
    margin-right: .75rem;
}

/* Zil butonu */

.tesl-notif-btn {
    position: relative;
    border: none;
    background: transparent;
    color: #e5e7eb;
    cursor: pointer;
    padding: .25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: background .15s ease, transform .08s ease;
}

.tesl-notif-btn:hover {
    background: rgba(15,23,42,0.9);
    transform: translateY(-1px);
}

.tesl-notif-icon {
    font-size: 1.1rem;
}

/* Kırmızı küçük badge */

.tesl-notif-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #f9fafb;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    border: 1px solid #111827;
    box-shadow: 0 0 0 1px rgba(15,23,42,0.9);
}

.tesl-notif-badge.is-hidden {
    display: none;
}

/* Küçük ping animasyonu */

.tesl-notif-badge.ping {
    animation: teslNotifPing .6s ease-out;
}

@keyframes teslNotifPing {
    0%   { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(248,113,113,0.7); }
    70%  { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(248,113,113,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(248,113,113,0); }
}

/* Dropdown pencere */

.tesl-notif-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    width: 320px;
    max-height: 420px;
    background: rgba(15,23,42,0.98);
    border-radius: .75rem;
    border: 1px solid rgba(31,41,55,1);
    box-shadow: 0 18px 45px rgba(0,0,0,0.75);
    backdrop-filter: blur(10px);
    overflow: hidden;
    display: none; /* JS ile .open class eklenince açılacak */
    z-index: 9999;
}

/* JS: dropdown.classList.toggle("open") */

.tesl-notif-dropdown.open {
    display: block;
}

/* Başlık */

.tesl-notif-dropdown-header {
    padding: .5rem .75rem;
    font-size: .85rem;
    font-weight: 600;
    color: #e5e7eb;
    border-bottom: 1px solid rgba(31,41,55,1);
    background: radial-gradient(circle at top, rgba(56,189,248,0.12), transparent 60%);
}

/* İç gövde */

.tesl-notif-dropdown-body {
    max-height: 360px;
    overflow-y: auto;
}

/* Bildirim yok ekranı */

.tesl-notif-empty {
    padding: .9rem .9rem 1rem;
    text-align: center;
    color: #9ca3af;
}

.tesl-notif-empty-icon {
    font-size: 1.6rem;
    margin-bottom: .2rem;
}

.tesl-notif-empty-title {
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .15rem;
}

.tesl-notif-empty-text {
    font-size: .78rem;
    color: #9ca3af;
}

/* Liste */

.tesl-notif-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tesl-notif-item {
    border-bottom: 1px solid rgba(31,41,55,0.9);
}

.tesl-notif-item:last-child {
    border-bottom: none;
}

.tesl-notif-item.is-unread {
    background: radial-gradient(circle at left, rgba(59,130,246,0.15), transparent 55%);
}

.tesl-notif-link {
    display: block;
    padding: .55rem .75rem;
    text-decoration: none;
    color: #e5e7eb;
    font-size: .8rem;
}

.tesl-notif-link:hover {
    background: rgba(15,23,42,0.9);
}

.tesl-notif-msg {
    margin-bottom: .15rem;
}

.tesl-notif-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .7rem;
    color: #9ca3af;
}

.tesl-notif-time {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tesl-notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #60a5fa;
}

/* Küçük ekranlarda sağdan taşmasın + nav gizleme */

@media (max-width: 640px) {
    .tesl-notif-dropdown {
        right: -40px;
        width: calc(100vw - 3rem);
    }

    .tesl-nav {
        display: none; /* İstersen hamburger menü ile değiştirebilirsin */
    }
}

/* ===========================
   Footer
   =========================== */

.tesl-footer {
    border-top: 1px solid rgba(31,41,55,1);
    background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
    padding: .8rem 0 1.2rem;
    margin-top: 1.5rem;
}

.tesl-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    font-size: .78rem;
    color: #9ca3af;
}

.tesl-footer-left {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.tesl-footer-brand {
    font-size: .85rem;
    font-weight: 600;
    color: #e5e7eb;
}

.tesl-footer-copy {
    font-size: .72rem;
    color: #9ca3af;
}

.tesl-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: flex-end;
}

.tesl-footer-links a {
    font-size: .75rem;
    color: #9ca3af;
    text-decoration: none;
    position: relative;
    padding-bottom: 1px;
    transition: color .15s ease;
}

.tesl-footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(to right, #22d3ee, #6366f1);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
}

.tesl-footer-links a:hover {
    color: #e5e7eb;
}

.tesl-footer-links a:hover::after {
    transform: scaleX(1);
}

/* Küçük ekranlar için footer stack */
@media (max-width: 640px) {
    .tesl-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tesl-footer-links {
        justify-content: flex-start;
    }
}


/* ===========================
   Auth (Login/Register) Layout
   =========================== */

.tesl-auth-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .tesl-auth-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }
}

.tesl-auth-main {
    padding: 1.2rem 1.3rem;
}

.tesl-auth-header {
    margin-bottom: .9rem;
}

.tesl-auth-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.tesl-auth-sub {
    margin: .2rem 0 0;
    font-size: .8rem;
    color: #9ca3af;
}

.tesl-auth-form {
    margin-top: .4rem;
}

.tesl-auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: .7rem;
}

.tesl-auth-alt-link {
    font-size: .75rem;
    color: #9ca3af;
}

.tesl-auth-alt-link a {
    color: #bfdbfe;
    text-decoration: none;
}

.tesl-auth-alt-link a:hover {
    color: #e5e7eb;
}

/* Ortadaki ince çizgi + "veya" */

.tesl-auth-divider {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 1.1rem 0 .7rem;
    font-size: .75rem;
    color: #6b7280;
}

.tesl-auth-divider span:nth-child(1),
.tesl-auth-divider span:nth-child(3) {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(55,65,81,1), transparent);
}

/* Steam butonu */

.tesl-auth-steam {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.tesl-btn-steam {
    width: 100%;
    justify-content: center;
    gap: .45rem;
    background: radial-gradient(circle at top left, #1b2838, #0b1220);
    border-color: rgba(15,23,42,1);
    color: #e5e7eb;
    box-shadow: 0 12px 30px rgba(15,23,42,0.85);
}

.tesl-btn-steam:hover {
    background: radial-gradient(circle at top left, #1f2937, #020617);
}

.tesl-steam-logo-circle {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 2px solid #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tesl-steam-circle-inner {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 2px solid #9ca3af;
}

.tesl-auth-steam-help {
    font-size: .7rem;
    color: #9ca3af;
}

/* Sağ taraftaki info kartı */

.tesl-auth-side {
    padding: 1.1rem 1.2rem;
    background: radial-gradient(circle at top left, rgba(37,99,235,0.2), rgba(15,23,42,0.98));
}

.tesl-auth-side-kicker {
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: .2rem;
}

.tesl-auth-side-title {
    margin: 0 0 .6rem;
    font-size: 1rem;
    font-weight: 600;
}

.tesl-auth-side-list {
    margin: 0 0 .7rem;
    padding-left: 0;
    list-style: none;
    font-size: .78rem;
    color: #e5e7eb;
}

.tesl-auth-side-list li {
    margin-bottom: .25rem;
}

.tesl-auth-side-foot {
    font-size: .72rem;
    color: #9ca3af;
}

/* Küçük ekranlarda kart arası boşluk */
@media (max-width: 900px) {
    .tesl-auth-side {
        margin-top: .5rem;
    }
}

/* ===========================
   Shell & Main Layout
   =========================== */

/* Header sabit olduğu için içerik 64px aşağıdan başlasın */
.tesl-shell {
    padding-top: 64px;
}

/* Sol sidebar + sağ içerik */

@media (max-width: 960px) {
    .tesl-main-layout {
        grid-template-columns: minmax(0,1fr);
    }

    .tesl-sidebar-left {
        position: static;
        order: -1;              /* sidebar içeriğin üstüne gelsin */
    }
}


.tesl-main-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: flex-start;
    margin-top: 1.25rem;
}

/* İçerik alanı (main) */
.tesl-main {
    padding: 0;
}


/* ===========================
   Sidebar Left
   =========================== */

.tesl-sidebar-left {
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    position: sticky;
    top: 80px;          /* header + biraz boşluk */
}

/* Sidebar kartları – normal kartla aynı ama biraz kompakt */
.tesl-sidebar-card {
    border-radius: 0.9rem;
    border: 1px solid rgba(31,41,55,1);
    background: radial-gradient(circle at top left, rgba(15,23,42,1), rgba(15,23,42,0.98));
    box-shadow: 0 14px 35px rgba(0,0,0,0.7);
    padding: 0.75rem 0.8rem;
    font-size: 0.8rem;
}

/* “Reklam Alanı” gibi kartlar için ufak spacing */
.tesl-sidebar-card + .tesl-sidebar-card {
    margin-top: 0.1rem;
}

/* Üstte avatar + isim satırı */
.tesl-sidebar-user-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.tesl-sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at top left, #22d3ee, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #f9fafb;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15,23,42,0.9);
}

.tesl-sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tesl-sidebar-user-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.tesl-sidebar-user-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.tesl-sidebar-user-sub {
    font-size: 0.7rem;
    color: #9ca3af;
}

/* Küçük istatistik kutuları */
.tesl-sidebar-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.tesl-sidebar-stat {
    border-radius: 0.5rem;
    border: 1px solid rgba(31,41,55,1);
    background: rgba(15,23,42,0.95);
    padding: 0.35rem 0.4rem;
}

.tesl-sidebar-stat .label {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-bottom: 0.1rem;
}

.tesl-sidebar-stat .value {
    font-size: 0.84rem;
    font-weight: 600;
}

/* Winrate progress */
.tesl-sidebar-progress {
    margin-bottom: 0.7rem;
}

.tesl-sidebar-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.tesl-sidebar-progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(15,23,42,1);
    overflow: hidden;
    border: 1px solid rgba(31,41,55,1);
}

.tesl-sidebar-progress-bar .inner {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(to right, #22c55e, #22d3ee, #6366f1);
    transition: width 0.25s ease-out;
}

.tesl-sidebar-progress-footer {
    font-size: 0.72rem;
    color: #9ca3af;
    margin-top: 0.2rem;
}

/* Hızlı aksiyon linkleri (5v5 ara / Takımını yönet vb.) */
.tesl-sidebar-quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.tesl-sidebar-card .tesl-quick-link {
    font-size: 0.78rem;
}

/* Sidebar navigation (Arena / Rekabet / Profil / Destek) */
.tesl-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tesl-sidebar-nav-group {
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(31,41,55,1);
    background: rgba(15,23,42,0.98);
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
}

.tesl-sidebar-nav-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.tesl-sidebar-nav-link {
    display: block;
    font-size: 0.78rem;
    color: #e5e7eb;
    text-decoration: none;
    padding: 0.25rem 0;
    border-radius: 0.35rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.tesl-sidebar-nav-link:hover {
    background: rgba(15,23,42,0.9);
    color: #bfdbfe;
}

/* Guest sidebar’daki listeler biraz daha sıkı olsun */
.tesl-sidebar-card .tesl-list-item {
    padding: 0.3rem 0;
    font-size: 0.78rem;
}

/* Sidebar içindeki başlık */
.tesl-sidebar-block-title {
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: .35rem;
    color: #e5e7eb;
}

/* ===========================
   OYUNCU ARAMA AUTOCOMPLETE
   =========================== */

.tesl-sidebar-search {
    position: relative;
}

.tesl-input-compact {
    padding: .45rem .65rem;
    font-size: .78rem;
}

/* Dropdown kutu */

.tesl-search-dropdown {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background: rgba(15,23,42,0.98);
    border: 1px solid rgba(31,41,55,1);
    border-radius: .7rem;
    box-shadow: 0 14px 35px rgba(0,0,0,0.6);
    padding: .45rem 0;
    display: none;
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
}

.tesl-search-dropdown.is-open {
    display: block;
}

.tesl-search-empty {
    padding: .5rem .75rem;
    font-size: .78rem;
    color: #9ca3af;
}

/* Sonuç item’i */

.tesl-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .5rem .75rem;
    text-decoration: none;
    color: #e5e7eb;
    border-bottom: 1px solid rgba(31,41,55,0.7);
    transition: background .15s ease, transform .06s ease;
}

.tesl-search-item:last-child {
    border-bottom: none;
}

.tesl-search-item:hover {
    background: rgba(15,23,42,0.95);
    transform: translateY(-1px);
}

/* Sol blok: avatar + metinler */

.tesl-search-left {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex: 1;
    min-width: 0;
}

.tesl-search-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(55,65,81,1);
    color: #f9fafb;
    font-size: .85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.tesl-search-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tesl-search-texts {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.tesl-search-topline {
    display: flex;
    align-items: center;
    gap: .3rem;
    white-space: nowrap;
}

.tesl-search-name {
    font-size: .86rem;
    font-weight: 600;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Rank badge */

.tesl-search-rank-badge {
    font-size: .68rem;
    padding: .05rem .35rem;
    border-radius: 999px;
    border: 1px solid rgba(59,130,246,0.85);
    background: rgba(15,23,42,0.95);
    color: #bfdbfe;
}

/* Verified tik */

.tesl-search-verified {
    font-size: .7rem;
    color: #4ade80;
}

/* Alt satır: elo + online status */

.tesl-search-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .12rem;
    font-size: .72rem;
    color: #9ca3af;
}

.tesl-search-elo {
    font-size: .72rem;
}

.tesl-search-status {
    font-size: .72rem;
}

.tesl-search-status.online {
    color: #4ade80;
}

.tesl-search-status.offline {
    color: #6b7280;
}

/* Sağdaki "Profili Aç" pill */

.tesl-search-profile-pill {
    flex-shrink: 0;
    font-size: .72rem;
    padding: .18rem .55rem;
    border-radius: 999px;
    border: 1px solid rgba(55,65,81,1);
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
}
.tesl-search-item:hover .tesl-search-profile-pill {
    border-color: rgba(96,165,250,0.9);
    color: #bfdbfe;
}

/* Küçük ekranlar */

@media (max-width: 640px) {
    .tesl-search-name {
        max-width: 120px;
    }
}



/* Bildirim kutusu gövdesi scroll olsun */
.tesl-notif-dropdown-body {
    max-height: 340px;   /* İstediğin yüksekliği verebilirsin */
    overflow-y: auto;
}

/* İsteğe bağlı: scroll bar biraz daha ince olsun */
.tesl-notif-dropdown-body::-webkit-scrollbar {
    width: 6px;
}
.tesl-notif-dropdown-body::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,0.8);
    border-radius: 999px;
}
