/* RPG Body Styling */

.idleRPG-body {
    background: #fff0f8;
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: 'Courier New', monospace;
    gap: 6px;
}

/* Stats Bar */
.rpg-stats {
    background: #ffe6f2;
    border: 1px solid #e197c0;
    padding: 4px 8px;
    font-size: 13px;
    color: #82275f;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
    border-radius: 8px;
    box-shadow: inset 0 0 4px rgba(255,110,199,0.25);
}

/* XP Bar aligns under stats */
#rpgXPBar {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #ffb0d3 var(--xp, 0%), #ffe6f2 0%);
    border: 1px solid #e197c0;
    margin-top: 2px;
    border-radius: 4px;
}

/* Tabs Row */
.rpg-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 2px 0;
}

/* Tab Buttons */
.rpg-tabs button {
    background: #ef6fad;
    border: 1px solid #e197c0;
    border-radius: 6px;
    padding: 4px 8px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    cursor: pointer;
}
.rpg-tabs button:hover {
    background: #ffecf7;
}

/* Zone Dropdown in Tabs */
.rpg-tabs #rpgZoneSelect {
    margin-left: auto;
    max-width: 220px;
    padding: 4px 6px;
    border: 1px solid #e197c0;
    border-radius: 6px;
    background: #fff0f8;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #6a2a4e;
}

/* Quest Log */
.rpg-log {
    flex: 1;
    min-height: 160px;
    background: radial-gradient(circle at top left, #fff8fc 0%, #ffeef8 100%);
    border: 1px dashed #f69cd4;
    padding: 10px 12px;
    font-size: 13px;
    overflow-y: auto;
    line-height: 1.5;
    color: #4a2b3d;
    border-radius: 10px;
    box-shadow: inset 0 0 12px rgba(246,156,212,0.25), 0 0 6px rgba(255,255,255,0.5);
    backdrop-filter: blur(2px);
}

/* Common log line base — animated reveal */
.log-line {
    margin-bottom: 6px;
    padding-left: 4px;
    border-left: 2px solid transparent;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards, slideUp 0.4s ease forwards;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3px;
    transition: transform 0.2s ease, background 0.3s ease;
}

.log-line:hover {
    transform: translateX(2px) scale(1.01);
    background: rgba(255,255,255,0.4);
    border-left-color: #f69cd4;
}

                    /* Rarities */
.log-line.rare {
    color: #c0377a;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(192,55,122,0.4);
    border-left-color: #c0377a;
}

.log-line.epic {
    color: #7a3cc6;
    text-shadow: 0 0 4px rgba(122,60,198,0.35), 0 0 8px rgba(255,255,255,0.2);
    font-weight: bold;
    border-left-color: #7a3cc6;
}

.log-line.legendary {
    background: linear-gradient(90deg, #ff6ec7, #b5ecf4, #fff6d8);
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 900;
    text-shadow: none;
    border-left-color: gold;
}

                    /* Animations */
@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(4px); }
    to { transform: translateY(0); }
}


/* Buttons Row */
.rpg-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.rpg-buttons button {
    background: #f69cd4;
    border: none;
    color: white;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
}
.rpg-buttons button:hover {
    background: #ff8dd4;
}

/* Achievements Window */
.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    font-family: 'Courier New', monospace;
}
.achievement {
    background: #ffe6f2;
    border: 1px solid #e197c0;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.achievement.locked {
    background: #f0f0f0;
    color: #aaa;
}
.achievement-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: hotpink;
    display: inline-block;
}
.achievement.locked .achievement-icon {
    background: #ccc;
}
