/* ========================================
   EL-CEZERİ PLATFORMER - PIXEL ART STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Game Container */
#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    background: #0a0a1a;
    border: 4px solid #4ECDC4;
    border-radius: 8px;
    box-shadow:
        0 0 20px rgba(78, 205, 196, 0.3),
        0 0 60px rgba(78, 205, 196, 0.1),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    image-rendering: pixelated;
}

/* Canvas */
#game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

#game-canvas.active {
    display: block;
}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(10, 10, 26, 0.95);
    z-index: 10;
}

.screen.active {
    display: flex;
}

/* Splash Screen */
#splash-screen {
    background: linear-gradient(180deg, #0a0a1a 0%, #1a1a3e 100%);
    cursor: pointer;
}

.splash-content {
    text-align: center;
    animation: fadeIn 1s ease;
}

.splash-logo {
    font-size: 64px;
    margin-bottom: 20px;
    animation: rotate 3s linear infinite;
}

.splash-title {
    font-size: 42px;
    color: #FFD700;
    text-shadow:
        4px 4px 0 #8B4513,
        -2px -2px 0 #FFA500;
    margin-bottom: 10px;
}

.splash-subtitle {
    font-size: 16px;
    color: #4ECDC4;
    margin-bottom: 30px;
}

.splash-loaded {
    font-size: 14px;
    color: #28a745;
    margin-bottom: 30px;
    animation: pulse 1.5s ease-in-out infinite;
}

.splash-prompt {
    font-size: 12px;
    color: #aaa;
    line-height: 2;
    margin-bottom: 40px;
    animation: blink 1.5s ease-in-out infinite;
}

.splash-prompt strong {
    color: #fff;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.splash-footer {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 10px;
    color: #666;
}

.splash-footer .version {
    color: #4ECDC4;
}

.splash-footer .developer {
    color: #888;
}

/* Main Menu */
.menu-content {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-title {
    font-size: 36px;
    color: #FFD700;
    text-shadow:
        4px 4px 0 #8B4513,
        -2px -2px 0 #FFA500;
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.game-subtitle {
    font-size: 14px;
    color: #4ECDC4;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 #0a5c55;
}

.menu-decoration {
    font-size: 32px;
    margin: 30px 0;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Pixel Buttons */
.pixel-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    padding: 15px 30px;
    margin: 10px auto;
    background: linear-gradient(180deg, #4ECDC4 0%, #3BA99C 100%);
    color: #0a0a1a;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow:
        0 4px 0 #2a7a73,
        0 6px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease;
    display: block;
    width: 250px;
}

.pixel-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 #2a7a73,
        0 8px 15px rgba(0, 0, 0, 0.4);
}

.pixel-btn:active {
    transform: translateY(4px);
    box-shadow:
        0 0px 0 #2a7a73,
        0 2px 5px rgba(0, 0, 0, 0.3);
}

.pixel-btn.secondary {
    background: linear-gradient(180deg, #6c757d 0%, #545b62 100%);
    color: #fff;
    box-shadow:
        0 4px 0 #3d4246,
        0 6px 10px rgba(0, 0, 0, 0.3);
}

.pixel-btn.secondary:hover {
    box-shadow:
        0 6px 0 #3d4246,
        0 8px 15px rgba(0, 0, 0, 0.4);
}

/* Keyboard selected button */
.pixel-btn.selected {
    background: linear-gradient(180deg, #4ECDC4 0%, #3BA99C 100%) !important;
    color: #0a0a1a !important;
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 #2a7a73,
        0 8px 15px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(78, 205, 196, 0.5);
}

/* Info Cards */
.info-card {
    background: linear-gradient(180deg, #1e2a3a 0%, #0f1a2a 100%);
    border: 3px solid #4ECDC4;
    border-radius: 8px;
    padding: 30px 40px;
    max-width: 500px;
    text-align: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.info-card h2 {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 15px;
}

.info-card h3 {
    color: #4ECDC4;
    font-size: 14px;
    margin-bottom: 15px;
}

.info-card p {
    color: #ccc;
    font-size: 10px;
    line-height: 2;
    margin-bottom: 15px;
}

.info-card.success {
    border-color: #28a745;
    box-shadow: 0 0 30px rgba(40, 167, 69, 0.3);
}

.info-card.danger {
    border-color: #dc3545;
    box-shadow: 0 0 30px rgba(220, 53, 69, 0.3);
}

.controls-list p {
    color: #fff;
    margin: 10px 0;
    font-size: 11px;
}

/* HUD */
#hud {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    z-index: 5;
    pointer-events: none;
}

#hud.hidden {
    display: none;
}

.hud-item {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #4ECDC4;
    border-radius: 4px;
    padding: 8px 15px;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hud-icon {
    font-size: 16px;
}

/* Final Message */
.final-message {
    background: rgba(78, 205, 196, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.final-message p {
    margin: 8px 0;
}

.final-message strong {
    color: #FFD700;
}

#final-score,
#level-score {
    font-size: 14px;
    color: #4ECDC4;
    margin: 15px 0;
}

/* Responsive */
@media (max-width: 850px) {
    #game-container {
        width: 100%;
        height: 100vh;
        border: none;
        border-radius: 0;
    }

    .game-title {
        font-size: 24px;
    }

    .pixel-btn {
        font-size: 12px;
        padding: 12px 20px;
        width: 200px;
    }
}