/* Public styles for Bats flyttar game */

#bats-flyttar-game-container {
    position: relative;
    background: #2c3e50;
    border: 3px solid #34495e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    font-family: 'Courier New', monospace;
}

#bats-flyttar-canvas {
    display: block;
    background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 100%);
    border: 2px solid #34495e;
    border-radius: 5px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

#bats-flyttar-ui {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background: rgba(52, 73, 94, 0.8);
    border-radius: 5px;
    color: #ecf0f1;
    font-weight: bold;
    font-size: 14px;
}

#bats-flyttar-ui > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

#bats-flyttar-ui span {
    color: #f39c12;
    font-size: 16px;
    min-width: 60px;
    text-align: right;
}

#bats-flyttar-highscores-toggle {
    text-align: center;
    margin: 15px 0;
}

#toggle-highscores-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-family: 'Courier New', monospace;
}

#toggle-highscores-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

#toggle-highscores-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#bats-flyttar-highscores {
    margin-top: 20px;
    padding: 15px;
    background: rgba(52, 73, 94, 0.8);
    border-radius: 5px;
    color: #ecf0f1;
}

#bats-flyttar-highscores h3 {
    margin: 0 0 15px 0;
    color: #f39c12;
    text-align: center;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#highscores-list {
    display: grid;
    gap: 8px;
}

.highscore-item {
    display: grid;
    grid-template-columns: 30px 50px 1fr 80px;
    align-items: center;
    padding: 8px 12px;
    background: rgba(44, 62, 80, 0.6);
    border-radius: 3px;
    font-size: 13px;
}

.highscore-rank {
    font-weight: bold;
    color: #f39c12;
    text-align: center;
}

.highscore-name {
    font-weight: bold;
    color: #e74c3c;
    font-size: 14px;
    letter-spacing: 1px;
}

.highscore-details {
    color: #95a5a6;
    font-size: 11px;
}

.highscore-score {
    font-weight: bold;
    color: #2ecc71;
    text-align: right;
    font-size: 14px;
}

/* Game over modal */
.bats-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.bats-modal-content {
    background: #2c3e50;
    padding: 30px;
    border-radius: 10px;
    border: 3px solid #f39c12;
    color: #ecf0f1;
    text-align: center;
    max-width: 400px;
    width: 90%;
    font-family: 'Courier New', monospace;
}

.bats-modal h2 {
    color: #f39c12;
    margin: 0 0 20px 0;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bats-modal .final-score {
    font-size: 36px;
    color: #2ecc71;
    font-weight: bold;
    margin: 20px 0;
}

.bats-modal .score-details {
    margin: 15px 0;
    color: #bdc3c7;
}

.bats-modal input[type="text"] {
    background: #34495e;
    border: 2px solid #f39c12;
    color: #ecf0f1;
    padding: 10px;
    font-size: 18px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    width: 100px;
    margin: 10px;
    font-family: 'Courier New', monospace;
}

.bats-modal button {
    background: #f39c12;
    border: none;
    color: #2c3e50;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

.bats-modal button:hover {
    background: #e67e22;
}

.bats-modal button:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
}

/* Loading and messages */
.bats-loading {
    text-align: center;
    color: #f39c12;
    font-style: italic;
}

.bats-error {
    color: #e74c3c;
    text-align: center;
    font-weight: bold;
}

.bats-success {
    color: #2ecc71;
    text-align: center;
    font-weight: bold;
}

/* Responsive design */
@media (max-width: 768px) {
    #bats-flyttar-game-container {
        padding: 10px;
        margin: 10px;
    }
    
    #bats-flyttar-canvas {
        width: 100%;
        height: auto;
    }
    
    #bats-flyttar-ui {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 12px;
    }
    
    #bats-flyttar-ui > div {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .highscore-item {
        grid-template-columns: 25px 40px 1fr 70px;
        font-size: 12px;
    }
    
    .bats-modal-content {
        padding: 20px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    #bats-flyttar-ui {
        flex-direction: column;
        gap: 5px;
    }
    
    #bats-flyttar-ui > div {
        width: 100%;
        justify-content: space-between;
    }
    
    .highscore-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 5px;
    }
    
    .bats-modal .final-score {
        font-size: 28px;
    }
}
