/* ========================================
   MINECRAFT THEME OVERHAUL
   Complete blocky aesthetic
   ======================================== */

.minecraft-theme {
    --dark-bg: #4a321f; /* Dirt Brown */
    --dark-bg-secondary: #352417;
    --dark-bg-tertiary: #2e1e13;

    --neon-cyan: #ffffff; /* White text for contrast */
    --neon-magenta: #ffaa00; /* Gold */
    --neon-purple: #7a5a3a; /* Wood brown */
    --neon-green: #3fa020; /* Grass Green */
    --neon-blue: #00aaaa; /* Cyan / Diamond */
    --neon-orange: #ffaa00; /* Gold */

    --glass-bg: #c6c6c6; /* Minecraft UI Gray */
    --glass-border: #ffffff;

    --font-primary: 'Press Start 2P', cursive;
    --font-arcade: 'Press Start 2P', cursive;
    --font-body: 'Press Start 2P', cursive;

    background: transparent !important;
    font-family: 'Press Start 2P', cursive !important;
    animation: none !important;
    position: relative;
    overflow: hidden;
}

@keyframes toolFloat {
    0% {
        background-position: 10% 20%, 85% 15%, 15% 75%, 80% 80%, center, center;
    }

    50% {
        background-position: 12% 22%, 83% 13%, 17% 73%, 78% 82%, center, center;
    }

    100% {
        background-position: 10% 20%, 85% 15%, 15% 75%, 80% 80%, center, center;
    }
}

/* Global pixel font override */
.minecraft-theme * {
    font-family: 'Press Start 2P', cursive !important;
    border-radius: 0 !important;
    clip-path: none !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
    text-shadow: 2px 2px #000 !important;
}

/* Background Override */
.minecraft-theme body::before {
    display: none !important;
}

.minecraft-theme .grid-overlay,
.minecraft-theme .gradient-orbs {
    display: none !important;
}

/* Disable the sci-fi warp canvas so Minecraft horizon stays visible */
.minecraft-theme #warp-canvas {
    display: none !important;
}

/* Scenic sky + land backdrop (blurred) using bgm.jpg */
.minecraft-theme::before {
    content: "";
    position: fixed;
    inset: -4%;
    z-index: -2;
    pointer-events: none;
    background: url('../assets/images/bgm.jpg') center center / cover no-repeat;
    filter: blur(8px);
    transform: scale(1.06); /* compensate for blur shrink */
    background-attachment: fixed;
}

/* Buttons - Minecraft Style */
.minecraft-theme .btn,
.minecraft-theme .option-btn,
.minecraft-theme .game-card,
.minecraft-theme .level-card,
.minecraft-theme .stat-card,
.minecraft-theme .hud-button {
    background: #c6c6c6 !important;
    border: 4px solid !important;
    border-color: #ffffff #555555 #555555 #ffffff !important;
    /* Minecraft button border */
    color: #404040 !important;
    text-shadow: none !important;
    padding: 1rem !important;
}

.minecraft-theme .btn:hover,
.minecraft-theme .option-btn:hover,
.minecraft-theme .game-card:hover,
.minecraft-theme .level-card:hover,
.minecraft-theme .hud-button:hover {
    background: #e0e0e0 !important;
    transform: none !important;
}

.minecraft-theme .btn-primary {
    border-color: #ffffff #555555 #555555 #ffffff !important;
}

.minecraft-theme .btn-secondary {
    background: #8e1c1c !important;
    color: white !important;
}

/* Redstone/TNT style */

/* Glass Panel -> Minecraft Container */
.minecraft-theme .glass-panel {
    background: #c6c6c6 !important;
    border: 4px solid !important;
    border-color: #ffffff #555555 #555555 #ffffff !important;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.4) !important;
}

/* HUD elements */
.minecraft-theme .hud {
    background: rgba(0, 0, 0, 0.5) !important;
    border-bottom: 4px solid #000 !important;
}

.minecraft-theme .timer-display,
.minecraft-theme .score-value {
    color: #ffff55 !important;
    animation: none !important;
}

/* Progress Bar */
.minecraft-theme .progress-bar-bg {
    background: #000 !important;
    border: 4px solid #555 !important;
    height: 30px !important;
}

.minecraft-theme .progress-bar-fill {
    background: #3fa020 !important;
    /* XP Bar Green */
    box-shadow: none !important;
}

.minecraft-theme .progress-bar-fill::after {
    display: none !important;
}

/* Input Fields */
.minecraft-theme .input-field {
    background: #000 !important;
    border: 4px solid #555 !important;
    color: #fff !important;
    font-size: 0.8rem !important;
}

/* Cards Icons */
.minecraft-theme .game-card-icon {
    filter: none !important;
    font-size: 2rem !important;
}

/* Titles */
.minecraft-theme .title-main,
.minecraft-theme .title-screen {
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    text-shadow: 4px 4px #404040 !important;
    animation: none !important;
}

/* Avatar */
.minecraft-theme .avatar-container img {
    image-rendering: pixelated;
}

/* Leaderboard */
.minecraft-theme .leaderboard-table tbody tr {
    background: #333 !important;
    border: 2px solid #555 !important;
}

.minecraft-theme .rank-badge {
    background: #555 !important;
    border-radius: 0 !important;
}

/* Modals */
.minecraft-theme .modal-content {
    background: #c6c6c6 !important;
    border: 4px solid #ffffff !important;
    box-shadow: 10px 10px 0 #000 !important;
}

/* Theme Toggle Button Specific Style */
.minecraft-theme .theme-toggle {
    background: #3fa020 !important;
    /* Green */
    color: white !important;
    border-color: #ffffff #1e4e10 #1e4e10 #ffffff !important;
}
