/* PROFILE.CSS - Wireframe Style
 * Core.css ile entegre edildi.
 */

/* :root bloğu kaldırıldı. Değişkenler Core.css'den geliyor. */

.profile-window.rpg-style {
    width: 400px;
    height: 480px; 
    max-height: 85vh;
    
    /* Core.css'den gelen ortak arka plan ve yapı */
    background: var(--hud-bg);
    border: 1px solid var(--hud-color-dim); 
    
    /* Ortak Izgara Deseni */
    background-image: var(--wireframe-gradient);
    background-size: 10px 10px;
    background-position: top left, top left, bottom right, bottom right;
    background-repeat: no-repeat;

    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    
    display: flex; flex-direction: column;
    overflow: hidden;
    position: relative;
    border-radius: 0;
    
    /* Font ailesi */
    font-family: 'Courier New', Courier, monospace;
    transition: none;
}

.profile-rpg-header {
    height: 50px;
    display: flex; align-items: center; padding: 0 15px; gap: 15px;
    flex-shrink: 0;
    border-bottom: 1px dashed var(--hud-color-dim);
}

.p-rpg-avatar {
    width: 32px; height: 32px; 
    border: 1px solid var(--hud-color);
    display: flex; justify-content: center; align-items: center;
    background: rgba(148, 216, 195, 0.05); /* --hud-color'ın transparan hali */
}

.p-rpg-img { font-size: 1rem; color: var(--hud-color); }

.p-rpg-info { flex: 1; display: flex; align-items: baseline; gap: 10px; }
.p-rpg-title { font-size: 0.6rem; color: var(--hud-text-dim); text-transform: uppercase; letter-spacing: 1px; }
.p-rpg-name { font-size: 0.9rem; color: var(--hud-color); font-weight: bold; letter-spacing: 2px; }
.p-rpg-rank { font-size: 0.6rem; color: var(--hud-text-dim); margin-left: auto; }

.profile-content {
    flex: 1; 
    overflow-y: auto;
    min-height: 0;
    padding: 15px;
}
.profile-content.no-padding { padding: 0; }

/* Scrollbar stilleri kaldırıldı (Core.css global stilini kullanacak) */

.p-rpg-level-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px 5px 15px;
    border-bottom: none; 
    margin-bottom: 0;
    font-family: monospace;
}

.p-rpg-lvl-box { text-align: left; }
.p-rpg-lvl-box:nth-child(2) { text-align: center; }
.p-rpg-lvl-box:last-child { text-align: right; }

.p-rpg-lvl-box .lbl { 
    font-size: 0.6rem; color: var(--hud-text-dim); display: block; margin-bottom: 2px;
}
.p-rpg-lvl-box .val { 
    font-size: 0.9rem; color: var(--hud-text); font-weight: bold;
}

.p-xp-bar-container {
    height: 4px;
    background: rgba(148, 216, 195, 0.1);
    margin: 0 15px 15px 15px;
    border: 1px solid rgba(148, 216, 195, 0.3);
    position: relative;
}
.p-xp-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--hud-color);
    box-shadow: 0 0 5px var(--hud-color);
    transition: width 0.3s ease;
}

.p-rpg-main-grid {
    display: flex;
    border-bottom: 1px solid var(--hud-color-dim);
    border-top: 1px solid var(--hud-color-dim);
}
.p-rpg-col {
    flex: 1; 
    padding: 15px;
    border-right: 1px solid var(--hud-color-dim);
}
.p-rpg-col:last-child { border-right: none; }

.p-rpg-section-title {
    font-size: 0.65rem; color: var(--hud-color); font-weight: bold; 
    margin-bottom: 10px; 
    letter-spacing: 2px;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--hud-color-dim);
}

.p-rpg-stat-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 6px; font-size: 0.75rem;
    font-family: monospace;
}

.stat-name { color: var(--hud-text-dim); }
.stat-val-group { display: flex; align-items: center; gap: 8px; }

.stat-plus {
    color: var(--hud-color);
    font-weight: bold; cursor: pointer;
    font-size: 12px;
    opacity: 0.7;
}
.stat-plus:hover { opacity: 1; text-shadow: 0 0 5px var(--hud-color); }

.stat-num { color: var(--hud-text); font-weight: bold; }

.p-rpg-val-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 6px; font-size: 0.75rem;
    font-family: monospace;
}
.val-icon { display: none; }
.val-name { color: var(--hud-text-dim); }
.val-num { color: var(--hud-text); }

.p-rpg-attributes { 
    padding: 15px; 
}
.p-attr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 30px; }
.p-attr-item { 
    display: flex; justify-content: space-between; 
    font-size: 0.7rem; font-family: monospace;
    border-bottom: 1px dotted var(--hud-color-dim);
    padding-bottom: 2px;
}
.p-attr-item span:first-child { color: var(--hud-text-dim); }
.p-attr-item span:last-child { color: var(--hud-color); }

/* .profile-tabs-bottom ve .profile-tab-btn -> css/tabs.css dosyasına taşındı */

.achievement-item {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 10px 0; 
    margin-bottom: 5px;
    border-bottom: 1px solid var(--hud-color-dim);
    transition: 0.2s;
    font-family: monospace;
}
.achievement-item:last-child { border-bottom: none; }

.achievement-item.unlocked .ach-list-title { color: var(--hud-color); text-shadow: 0 0 5px var(--hud-color-dim); }
.achievement-item.unlocked .ach-check { opacity: 1; }

.ach-list-icon { display: none; } 

.ach-list-info { flex: 1; display: flex; flex-direction: column; }

.ach-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.ach-list-title { font-weight: bold; font-size: 0.75rem; letter-spacing: 1px; color: var(--hud-text-dim); }

.ach-list-desc { font-size: 0.65rem; color: #64748b; margin-bottom: 5px; }

.ach-check { 
    color: var(--hud-color); 
    font-weight: bold; 
    opacity: 0; 
}

.ach-progress-text { font-size: 0.6rem; color: var(--hud-text-dim); }
.ach-progress-bg { 
    width: 100%; height: 2px; 
    background: rgba(255,255,255,0.1); 
    margin-top: 2px;
}
.ach-progress-fill { 
    height: 100%; 
    background: var(--hud-color);
    transition: width 0.3s ease; 
}