/* css/global.css */

/* Import 'Cinzel' for a modern fantasy feel, and 'Inter' for UI text reliability */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800&family=Inter:wght@400;600&display=swap');

#global-navbar-container {
    width: 100%;
    /* Gradient background for depth without texture noise */
    background: linear-gradient(to bottom, #0f172a, #0a0f1c);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 60px;
    /* Allow height to grow on mobile if elements wrap */
    display: flex;
    align-items: center;
}

.global-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 30px;
    height: 100%;
}

.game-title {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #e2e8f0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    /* Clean, no stroke or neon clutter */
    background: linear-gradient(to right, #e2e8f0, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-right-elements {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-player-stats {
    display: flex;
    align-items: center;
    gap: 0;
    /* Removing gap, using padding internal to groups */
    color: #cbd5e1;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    /* Unified pill background */
    border-radius: 30px;
    padding: 4px 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* User Profile (Avatar + Name) */
.player-profile-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    object-fit: cover;
}

.player-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

/* Stats (Health, Level) - Clean layout */
.stat-group {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    position: relative;
}

/* Separator between stats */
.stat-group:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

.stat-value {
    font-weight: 600;
    color: #e2e8f0;
    font-variant-numeric: tabular-nums;
}

.icon-sword {
    width: 1.2em;
    height: 1.2em;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

/* Dynamic background classes */
.background-landing {
    background-image: url('../assets/backgrounds/landing.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
}

.background-hub {
    background-image: url('../assets/backgrounds/library.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
}

.background-battle,
.background-chestBattle,
.background-memoryBattle {
    background-image: url('../assets/backgrounds/lvl1_bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
}