/* Styling für Spezialblöcke */

/* Schloss-Block */
.locked-block .tile-content {
    position: relative;
    border: 3px solid rgba(255, 215, 0, 0.7);
}

.special-block-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    z-index: 5;
}

.block-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

.color-hint {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid white;
}

.unlocked {
    animation: unlock-animation 1s forwards;
}

@keyframes unlock-animation {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Eis-Block */
.ice-block .tile-content {
    background-color: rgba(173, 216, 230, 0.6) !important;
    border: 3px solid #ADD8E6;
    position: relative;
}

.ice-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    z-index: 1;
    border-radius: 8px;
}

.health-bar {
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    height: 4px;
    background-color: rgba(255, 0, 0, 0.3);
    border-radius: 2px;
}

.health-fill {
    height: 100%;
    background-color: #FF0000;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.damaged {
    animation: damage-animation 0.5s;
}

@keyframes damage-animation {
    0% { transform: scale(1); }
    30% { transform: scale(1.1); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Feuer-Block */
.fire-block .tile-content {
    background: linear-gradient(to bottom, #ff8c00, #ff4500) !important;
    border: 2px solid #ff4500;
}

.burning {
    animation: burn-animation 1s;
}

@keyframes burn-animation {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.5); }
    100% { transform: scale(0); filter: brightness(2); opacity: 0; }
}

@keyframes flicker {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 1; }
}