/* ===========================================
   LAYOUT - Christmas Playlist
   =========================================== */

/* ===== PAGE LOGIN ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-title {
    font-family: var(--font-festive);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light), var(--color-red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
}

.login-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.success-message, .error-message {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    margin-top: 1rem;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--color-success);
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-message h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.success-message .hint {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

.login-countdown {
    margin-top: 2rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ===== PAGE PRINCIPALE ===== */
.main-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: var(--header-height);
    margin: 1rem;
    margin-bottom: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-icon {
    font-size: 1.75rem;
}

.header-title {
    font-family: var(--font-festive);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light), var(--color-red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 2rem;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
}

/* Playlist banner */
.playlist-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    margin-bottom: 2rem;
}

.banner-title {
    font-family: var(--font-festive);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-snow);
}

.banner-stats {
    color: var(--color-text-secondary);
}

.separator {
    margin: 0 0.5rem;
}

.banner-actions {
    display: flex;
    gap: 1rem;
}

/* Sections */
.section-title {
    font-family: var(--font-festive);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-snow);
}

/* Top 3 */
.top3-section {
    margin-bottom: 2rem;
}

.top3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Songs list */
.songs-section {
    margin-bottom: 2rem;
}

.songs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Footer */
.app-footer {
    padding: 1rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.countdown-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .app-header {
        margin: 0.5rem;
        padding: 0 1rem;
    }

    .header-title {
        font-size: 1.25rem;
    }

    .main-content {
        padding: 1rem;
    }

    .playlist-banner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .banner-actions {
        width: 100%;
        flex-direction: column;
    }

    .top3-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .song-card {
        flex-wrap: wrap;
    }

    .song-actions {
        width: 100%;
        justify-content: flex-end;
        padding-top: 0.5rem;
        border-top: 1px solid var(--glass-border);
    }

    .toast-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
}
