/* Spotify Advent Calendar Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 3em;
    color: #c41e3a;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 20px;
}

.banner.notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.banner.notice p {
    margin-bottom: 10px;
    color: #856404;
}

.btn-spotify {
    display: inline-block;
    background: #1DB954;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-spotify:hover {
    background: #1ed760;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.banner.success {
    background: #d4edda;
    border: 2px solid #28a745;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.banner.success p {
    color: #155724;
    font-weight: bold;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    perspective: 1000px;
}

.door {
    position: relative;
    height: 150px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.door.locked {
    cursor: not-allowed;
}

.door.opened .door-front {
    transform: rotateY(180deg);
}

.door.opened .door-back {
    transform: rotateY(0deg);
}

.door-front,
.door-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s;
}

.door-front {
    background: linear-gradient(135deg, #c41e3a 0%, #8b1a2d 100%);
    color: white;
    border: 3px solid #ffd700;
}

.door.can-open .door-front:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.door.locked .door-front {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    border-color: #888;
}

.door-back {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #c41e3a;
    transform: rotateY(180deg);
}

.door-number {
    font-size: 1.2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.lock-icon {
    font-size: 0.6em;
    margin-top: 10px;
}

.open-icon {
    font-size: 0.8em;
    margin-top: 10px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #000;
}

#modalTitle {
    color: #c41e3a;
    margin-bottom: 20px;
    text-align: center;
}

.modal-message {
    font-size: 1.5em;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 10px;
    margin-bottom: 20px;
    color: #333;
}

.spotify-player {
    margin: 20px 0;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spotify-player iframe {
    border-radius: 12px;
}

.playlist-status {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: bold;
}

.playlist-status.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.playlist-status.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 2px solid #17a2b8;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #f5c6cb;
    text-align: center;
}

.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .calendar-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }

    .door {
        height: 120px;
    }

    .door-front,
    .door-back {
        font-size: 2em;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }

    .modal-message {
        font-size: 1.2em;
    }
}