/* Planner Page Styles - Spotify-inspired */

.planner-page {
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.planner-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Section */
.planner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-family: 'Beckan', 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--primary-color);
    margin: 0;
    letter-spacing: -1px;
}

.btn-create-playlist {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-create-playlist:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* Liked Cocktails - Full Width Card */
.liked-cocktails-section {
    margin-bottom: 3rem;
}

.liked-card {
    position: relative;
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #6366f1 100%) !important;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.liked-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.5);
}

.playlist-gradient-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.playlist-card-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 3rem;
    z-index: 1;
}

.playlist-icon-large {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.playlist-info {
    color: white;
    flex: 1;
}

.playlist-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.playlist-title {
    font-family: 'Beckan', 'Inter', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin: 0.5rem 0;
    line-height: 1;
    letter-spacing: -2px;
}

.playlist-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 1rem 0;
}

.playlist-stats {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

/* Playlists Section */
.playlists-section {
    margin-top: 3rem;
}

.section-title {
    font-family: 'Beckan', 'Inter', sans-serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.playlist-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px rgba(21, 71, 38, 0.1);
}

.playlist-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(21, 71, 38, 0.2);
}

.playlist-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #FFF8E7 0%, #FFE9A1 100%);
}

.playlist-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.playlist-card:hover .playlist-image img {
    transform: scale(1.1);
}

.playlist-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.playlist-card:hover .playlist-overlay {
    opacity: 1;
}


.playlist-card-info {
    padding: 1.25rem;
}

.playlist-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.playlist-meta {
    font-size: 0.9rem;
    color: rgba(44, 62, 80, 0.7);
    margin: 0;
}

/* Playlist Modal */
.playlist-modal,
.create-playlist-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.playlist-modal.active,
.create-playlist-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.create-modal-content {
    width: 60%;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(21, 71, 38, 0.1);
    background: linear-gradient(135deg, rgba(255, 248, 231, 0.5) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.modal-header-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.modal-playlist-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a5c30 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(21, 71, 38, 0.3);
}

.modal-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(44, 62, 80, 0.7);
}

.modal-title {
    font-family: 'Beckan', 'Inter', sans-serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0.25rem 0;
    letter-spacing: -0.5px;
}

.modal-meta {
    font-size: 0.95rem;
    color: rgba(44, 62, 80, 0.7);
    font-weight: 500;
}

.modal-close {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(21, 71, 38, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: white;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: rotate(90deg);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.modal-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Modal Cocktails Grid */
.modal-cocktails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.modal-cocktail-card {
    background: rgba(255, 248, 231, 0.5);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.modal-cocktail-card:hover {
    background: rgba(255, 248, 231, 0.8);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(21, 71, 38, 0.15);
}

.modal-cocktail-image {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFF8E7 0%, #FFE9A1 100%);
}

.modal-cocktail-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-cocktail-info {
    padding: 1rem;
}

.modal-cocktail-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

.modal-cocktail-remove {
    margin-top: 0.5rem;
    background: none;
    border: none;
    color: #dc3545;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.modal-cocktail-remove:hover {
    opacity: 1;
}

/* Ingredients Needed Section */
.modal-ingredients-section {
    background: rgba(255, 248, 231, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 0;
}

.ingredients-needed-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.ingredient-needed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.ingredient-needed-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(4px);
}

.ingredient-needed-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-gold);
}

.ingredient-needed-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-dark);
}

.ingredient-needed-count {
    font-size: 0.85rem;
    color: rgba(44, 62, 80, 0.6);
    font-weight: 600;
}

.btn-full-width {
    width: 100%;
    justify-content: center;
}

/* Create Playlist Modal */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(21, 71, 38, 0.15);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: rgba(255, 248, 231, 0.3);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 248, 231, 0.5);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a5c30 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(21, 71, 38, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 71, 38, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    border: 2px solid rgba(21, 71, 38, 0.2);
}

.btn-secondary:hover {
    background: white;
    border-color: rgba(21, 71, 38, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-ingredients-section {
        position: static;
    }

    .modal-cocktails-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .planner-container {
        padding: 0 1rem;
    }

    .playlist-card-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
    }

    .playlist-icon-large {
        width: 100px;
        height: 100px;
        font-size: 3.5rem;
    }

    .playlist-title {
        font-size: 2.5rem;
    }

    .playlists-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .modal-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-cocktails-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1rem;
    }
}
