/* ==========================================================================
   Seyyahız — Profil (profile.html)
   Yükleme sırası: tokens.css → style.css → components.css → badges.css → profile.css
   style.css'teki .hud-* kuralları profil dışında da kullanılabildiği için
   onlara dokunulmadı; burada body.hud-body altında ezilir.
   ========================================================================== */

body.hud-body {
    background-color: var(--ink-100);
    background-image: radial-gradient(circle at 50% -10%, var(--ink-80) 0%, var(--ink-100) 60%);
    font-family: var(--font-sans);
}

/* --- Üst çubuk --- */
.hud-body .hud-navbar { padding: 1.25rem 2rem; }

.hud-body .hud-logo {
    font-size: var(--fs-20);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: none;
}

.hud-body .hud-btn-ghost {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.hud-body .hud-btn-ghost svg { width: 20px; height: 20px; }
.hud-body .hud-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.hud-body .hud-btn-ghost:active { transform: scale(0.94); }

/* --- Paneller: düz koyu yüzeyler, ağır bulanıklık yok --- */
.hud-body .hud-left,
.hud-body .hud-right {
    background: rgb(var(--ink-90-rgb) / 0.75);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: rgba(255, 255, 255, 0.06);
}

.hud-body .hud-center {
    background: rgb(var(--ink-90-rgb) / 0.6);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hud-body .hud-scroll-content { gap: 1.75rem; }

/* Bölüm başlıkları: küçük, sakin etiket (neon yok) */
.hud-body .hud-header {
    margin: 0;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: var(--fs-12);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: none;
}

.hud-body .hud-center .hud-header { border-bottom: none; color: var(--text-muted); }

/* --- Kimlik kartı --- */
.hud-body .hud-hero-top { gap: 1.1rem; margin-bottom: 1.25rem; }

.hud-body .hud-avatar {
    width: 76px;
    height: 76px;
    background-color: var(--ink-70);
    border: 3px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    font-size: var(--fs-30);
    font-weight: 800;
}

.hud-avatar-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.hud-avatar-overlay {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--sun-30), var(--sun-70));
    border: 2px solid var(--ink-90);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.hud-body .hud-title {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #fff;
    font-family: var(--font-sans);
    font-size: var(--fs-30);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: none;
    line-height: 1.1;
}

.hud-body .hud-subtitle {
    margin-top: 0.3rem;
    color: var(--cini-30);
    font-size: var(--fs-14);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.hud-body .hud-label {
    color: var(--text-muted);
    font-size: var(--fs-12);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hud-body .hud-level-text {
    margin-left: 0.35rem;
    color: #fff;
    font-family: var(--font-sans);
    font-size: var(--fs-24);
    font-weight: 800;
    text-shadow: none;
}

.hud-body .hud-xp-text { color: var(--text-muted); font-size: var(--fs-12); font-variant-numeric: tabular-nums; }

.hud-body .hud-xp-track {
    height: 8px;
    border-radius: var(--radius-pill);
    background: rgb(var(--ink-100-rgb) / 0.8);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hud-body .hud-xp-fill {
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cini-50), var(--cini-30));
    box-shadow: none;
    transition: width 1.2s var(--ease-out);
}

/* --- İstatistikler --- */
.hud-body .hud-stats {
    flex-direction: row; /* .hud-widget sütun yapıyor */
    gap: 0.6rem;
    padding: 0;
    border: none;
}

.hud-body .hud-stat-item {
    flex: 1;
    padding: 0.8rem 0.9rem;
    border-radius: var(--radius-md);
    background: rgb(var(--ink-100-rgb) / 0.55);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hud-body .hud-stat-val {
    color: #fff;
    font-family: var(--font-sans);
    font-size: var(--fs-24);
    font-weight: 800;
    text-shadow: none;
    font-variant-numeric: tabular-nums;
}

/* Puan altın (ödül rengi) */
.hud-body #statScore { color: var(--gold-50); }

/* --- Listeler --- */
.hud-body .hud-list { gap: 0.45rem; }

.hud-body .hud-list-item {
    gap: 0.8rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-md);
    border-left: none;
    background: rgba(255, 255, 255, 0.04);
}

.hud-body .hud-list-item:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: none;
}

.hud-body .hud-item-me {
    background: rgb(var(--cini-50-rgb) / 0.1) !important;
    box-shadow: inset 0 0 0 1px rgb(var(--cini-50-rgb) / 0.45);
}

.hud-body .hud-item-title {
    color: #fff;
    font-size: var(--fs-14);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.hud-body .hud-muted { color: var(--text-muted); font-size: var(--fs-12); font-weight: 400; }

.hud-body .hud-friend-avatar {
    width: 36px;
    height: 36px;
    background: var(--ink-70);
    box-shadow: none;
    font-size: var(--fs-14);
    text-shadow: none;
}

.hud-body .hud-status-dot.online { background: var(--success-50); box-shadow: none; }

/* Sıralama ve geçmiş satırları (profile.html script'i üretir) */
.lb-rank-num {
    width: 1.5rem;
    color: var(--text-faint);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.hud-list-item:nth-child(1) .lb-rank-num { color: var(--gold-50); }
.hud-list-item:nth-child(2) .lb-rank-num { color: #cfd6e3; }
.hud-list-item:nth-child(3) .lb-rank-num { color: #e0975a; }

.lb-points {
    color: var(--gold-50);
    font-weight: 700;
    font-size: var(--fs-14);
    font-variant-numeric: tabular-nums;
}

.history-rank {
    min-width: 2.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-weight: 800;
    font-size: var(--fs-14);
    text-align: center;
}

.history-rank.is-1 { background: rgb(var(--gold-50-rgb) / 0.16); color: var(--gold-50); }

.quest-item {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.4rem;
    box-shadow: inset 3px 0 0 var(--sun-50);
}

.quest-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.quest-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--success-50);
    font-size: var(--fs-12);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.quest-live::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.quest-item.is-idle { opacity: 0.7; box-shadow: none; }

/* Harita ipucu kutusu */
.hud-body .hud-tooltip {
    background: var(--ink-100);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    font-family: var(--font-sans);
}

/* Keşif haritası: style.css'teki tam ekran arka plan kuralı (width/height %100 +
   koyu zemin) inline left/right ile çakışıp kutuyu orta panelden taşırıyordu */
.hud-body #profile-map-container {
    width: auto;
    height: auto;
    background: none;
}

/* Bölge rozetleri ızgarası */
#regionalBadgesGallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px 0;
}

/* Yönetici: sezon bitir */
.season-admin-control {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
}

/* ==========================================================================
   Mobil / dar ekran (style.css 1024px altında panelleri alt alta diziyor)
   ========================================================================== */
@media (max-width: 1024px) {
    .hud-body .hud-left,
    .hud-body .hud-right { background: transparent; padding: 1.25rem 1rem; }
    .hud-body .hud-navbar { position: relative; padding: 1rem; }
    .hud-body .hud-panel { padding-top: 0; }
    .hud-body .hud-center { width: auto; margin: 0 1rem; min-height: 380px; } /* width:100% + margin taşırıyordu */
}
