:root {
    --black: #000000;
    --purple-dark: #2a003b;
    /* legsötétebb lila */
    --purple-main: #4b007a;
    --silver: #c0b7d1;
    --red-accent: #7a0a0a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--black);
    color: var(--silver);
    font-family: "Cormorant Garamond", serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Fejléc + logó */
header {
    padding-top: 5px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.logo-meret {
    width: 100%;
}



/* Bal oszlop – karakter */
.character-panel {
    border: 1px solid var(--purple-dark);
    box-shadow: 0 0 20px rgba(75, 0, 122, 0.6);
    padding: 10px;
    background: radial-gradient(circle at top, #1a001f 0%, #000000 60%);
}

.character-name {
    font-size: 2rem;
    letter-spacing: 2px;
    /*text-transform: uppercase;*/
    color: var(--silver);
    text-shadow: 0 0 8px var(--purple-main);
    margin-bottom: 15px;
    text-align: center;
}

.character-image-wrapper {
    border: 1px solid var(--purple-main);
    box-shadow: 0 0 25px rgba(42, 0, 59, 0.9);
    padding: 10px;
    background: radial-gradient(circle, #120015 0%, #000000 70%);
}

.character-image {
    width: 100%;
    display: block;
}

/* Jobb oszlop – képesség ikonok */
.skills-panel {
    border: 1px solid var(--purple-dark);
    box-shadow: 0 0 20px rgba(75, 0, 122, 0.6);
    padding: 10px;
    background: radial-gradient(circle at top, #14001a 0%, #000000 60%);
}

.skills-title {
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 8px var(--purple-main);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, auto);
    gap: 5px;
}

.skill-row-title {
    grid-column: 1 / span 3;
    text-align: center;
    font-size: 1.1rem;
    color: var(--silver);

}

.skill-icon-wrapper {
    border: 1px solid var(--purple-main);
    background: #050005;
    box-shadow: 0 0 15px rgba(42, 0, 59, 0.8);
    padding: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.skill-icon-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(75, 0, 122, 1);
}

.skill-icon {
    max-width: 120px;
    max-height: 120px;
}

.skill-name {
    margin-top: 3px;
    font-size: 0.85rem;
    text-align: center;
    color: var(--silver);
}

.skills-panel img {
    width: 100%;
}


@media (min-width: 992px) {
    .logo-meret {
        width: 40%;
    }
}

/* Tooltip alap */
.tooltip-box {
    display: none;
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(42, 0, 59, 0.95);
    color: var(--silver);
    padding: 10px 14px;
    border: 1px solid var(--purple-main);
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(75, 0, 122, 0.9);
    font-size: 0.85rem;
    width: 200px;
    text-align: center;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* Hover PC-n */
.skill-icon-wrapper:hover .tooltip-box {
    display: block;
    opacity: 1;
}

/* Mobil – wrapper pozíció */
.skill-icon-wrapper {
    position: relative;
}

.skill-icon-wrapper.disabled {
    opacity: 0.6 !important;
    filter: grayscale(10%) !important;
    cursor: not-allowed !important;
    pointer-events: none !important; /* Megakadályozza a hovert és kattintást */
}



/* Input mezők és opciók dark-fantasy stílusa */
input.form-control, select.form-select {
    background-color: #0b0010 !important;
    color: var(--silver) !important;
    border: 1px solid var(--purple-main) !important;
}

input.form-control:focus, select.form-select:focus {
    box-shadow: 0 0 10px rgba(75, 0, 122, 0.8) !important;
    border-color: var(--silver) !important;
}

/* Gomb hover effektus */
.btn:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 15px rgba(75, 0, 122, 1);
}

/* --- XP TÖRTÉNET DOBOZ (3-4 sor magas, lila kerettel és görgetősávval) --- */
/* --- XP TÖRTÉNET DOBOZ STÍLUSOK --- */
.history-box {
    margin-top: 10px;
    height: 105px; /* KB. 3-4 sor magasság */
    overflow-y: auto;
    border: 1px solid var(--purple-main); /* Ugyanaz az 1px-es keret, mint a karakter képénél */
    border-radius: 0; /* Szögletes sarok a karakter-panelhez igazodva */
    padding: 6px 10px;
    background: rgba(18, 0, 21, 0.85);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
    font-size: 0.9rem;
    font-family: monospace, sans-serif;
    color: var(--silver); /* Ugyanaz a szín, mint a "Rendelkezésre XP" szövegé */
}

/* Egyedi lila görgetősáv (Scrollbar) */
.history-box::-webkit-scrollbar {
    width: 6px;
}
.history-box::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
}
.history-box::-webkit-scrollbar-thumb {
    background: var(--purple-main);
}
.history-box {
    scrollbar-width: thin;
    scrollbar-color: var(--purple-main) rgba(0, 0, 0, 0.4);
}

/* Sorok és egyedi betűszínek */
.history-item {
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item.green {
    color: #22c55e !important; /* Zöld (+XP órai munka) */
}

.history-item.red {
    color: #ef4444 !important; /* Piros (-XP vásárlás) */
}

.history-item.yellow {
    color: #eab308 !important; /* Sárga (Felhasználva) */
}