/* FullMoon MMO - Gothic Character Panel
 * Bloodmoon-inspired character sheet with portrait, stats, and equipment slots.
 * Used in profile and character screens.
 */

/* =====================================================
   CHARACTER PANEL — Portrait + Stats + Equipment
   ===================================================== */

/* Character sheet container */
.gothic-char-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    body.hud-layout-landscape .gothic-char-panel {
        grid-template-columns: 280px 1fr;
        gap: 20px;
    }
}

/* --- Portrait Section --- */
.gothic-portrait {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gothic-portrait__frame {
    position: relative;
    width: 180px;
    height: 210px;
    border: 2px solid rgba(80,60,70,0.5);
    border-radius: 4px;
    background:
        linear-gradient(180deg,
            rgba(30,20,25,0.9) 0%,
            rgba(15,10,14,0.95) 100%);
    box-shadow:
        0 4px 20px rgba(0,0,0,0.5),
        inset 0 0 20px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* Top accent line */
.gothic-portrait__frame::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.3), transparent);
    z-index: 1;
}

/* Portrait image/canvas */
.gothic-portrait__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Level badge overlay */
.gothic-portrait__level {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 16px;
    background:
        linear-gradient(180deg,
            rgba(35,25,30,0.95) 0%,
            rgba(20,14,18,0.98) 100%);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 3px;
    font-family: var(--font-family-display, 'Cinzel', serif);
    font-size: 11px;
    font-weight: 700;
    color: #c8b898;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Name plate */
.gothic-portrait__name {
    font-family: var(--font-family-display, 'Cinzel', serif);
    font-size: 15px;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    text-align: center;
}

.gothic-portrait__subtitle {
    font-size: 11px;
    color: rgba(200,180,160,0.6);
    letter-spacing: 0.04em;
    margin-top: -4px;
}

/* --- Equipment Slots Grid --- */
.gothic-equipment {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    max-width: 200px;
    margin: 0 auto;
}

.gothic-equip-slot {
    width: 56px;
    height: 56px;
    border: 1px solid rgba(80,60,70,0.4);
    border-radius: 3px;
    background:
        linear-gradient(135deg,
            rgba(30,22,26,0.8) 0%,
            rgba(18,12,16,0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: rgba(200,180,160,0.2);
    transition: all 180ms ease;
    position: relative;
    cursor: pointer;
}

.gothic-equip-slot:hover {
    border-color: rgba(212,175,55,0.3);
    box-shadow: 0 0 8px rgba(212,175,55,0.1);
}

.gothic-equip-slot--filled {
    border-color: rgba(100,80,90,0.5);
    color: rgba(200,180,160,0.7);
}

/* Rarity glow on equipment */
.gothic-equip-slot--common { border-color: rgba(158,158,158,0.3); }
.gothic-equip-slot--uncommon { border-color: rgba(67,160,71,0.4); }
.gothic-equip-slot--rare { border-color: rgba(30,136,229,0.4); box-shadow: 0 0 6px rgba(30,136,229,0.1); }
.gothic-equip-slot--epic { border-color: rgba(142,36,170,0.4); box-shadow: 0 0 8px rgba(142,36,170,0.15); }
.gothic-equip-slot--legendary { border-color: rgba(255,111,0,0.5); box-shadow: 0 0 10px rgba(255,111,0,0.2); }

/* --- Stats Panel --- */
.gothic-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gothic-stats__group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
}

.gothic-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid rgba(80,60,70,0.15);
}

.gothic-stat-row__label {
    font-family: var(--font-family-display, 'Cinzel', serif);
    font-size: 12px;
    font-weight: 600;
    color: rgba(200,180,160,0.8);
    letter-spacing: 0.04em;
}

.gothic-stat-row__value {
    font-size: 13px;
    font-weight: 700;
    color: #c8b898;
    min-width: 30px;
    text-align: right;
}

.gothic-stat-row__value--highlight {
    color: #d4af37;
}

/* Allocate button (+) */
.gothic-stat-row__alloc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 4px;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 2px;
    background: rgba(30,22,26,0.6);
    color: #d4af37;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 150ms ease;
}

.gothic-stat-row__alloc:hover {
    border-color: rgba(212,175,55,0.6);
    background: rgba(212,175,55,0.1);
    box-shadow: 0 0 6px rgba(212,175,55,0.15);
}

/* Derived stats (Damage, Vitality, etc.) */
.gothic-stats__derived {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
    padding-top: 8px;
    border-top: 1px solid rgba(212,175,55,0.1);
}

.gothic-derived-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 0;
}

.gothic-derived-row__label {
    font-size: 11px;
    color: rgba(200,180,160,0.6);
    letter-spacing: 0.03em;
}

.gothic-derived-row__value {
    font-size: 12px;
    font-weight: 700;
    color: rgba(200,180,160,0.85);
}

/* --- Achievements / Badges Row --- */
.gothic-achievements {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}

.gothic-achievement {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(80,60,70,0.4);
    border-radius: 3px;
    background: rgba(20,14,18,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: border-color 180ms ease;
}

.gothic-achievement:hover {
    border-color: rgba(212,175,55,0.3);
}

.gothic-achievement--earned {
    border-color: rgba(212,175,55,0.4);
    box-shadow: 0 0 6px rgba(212,175,55,0.1);
}

/* --- Potions / Consumables Slots --- */
.gothic-potions {
    display: flex;
    gap: 6px;
    padding: 8px 0;
}

.gothic-potion-slot {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(80,60,70,0.35);
    border-radius: 3px;
    background:
        linear-gradient(135deg,
            rgba(25,18,22,0.8) 0%,
            rgba(14,10,14,0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(200,180,160,0.25);
    transition: all 180ms ease;
    cursor: pointer;
}

.gothic-potion-slot:hover {
    border-color: rgba(212,175,55,0.25);
}

.gothic-potion-slot--filled {
    color: rgba(200,180,160,0.75);
    border-color: rgba(100,80,90,0.45);
}
