/* Discovery Page Styles - Spotify-like Layout */

.discovery-page {
    padding-top: 100px;
    padding-bottom: 60px;
}

.cocktails-section {
    margin-bottom: 48px;
    overflow: visible;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 16px;
}

.section-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: -0.5px;
}

.section-header h2::after {
    display: none;
}

.show-all {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.show-all:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Recently Watched - Compact Horizontal Cards */
.recent-cocktails-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 16px;
    overflow: visible;
}

.recent-cocktail-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    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 3px 12px rgba(21, 71, 38, 0.08);
    height: 80px;
}

.recent-cocktail-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(21, 71, 38, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
}

.recent-cocktail-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-cocktail-info {
    padding: 0 16px;
    flex: 1;
    overflow: hidden;
}

.recent-cocktail-info h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-cocktail-card:hover h3 {
    color: var(--accent-gold);
}

/* Random Cocktail Section */
.random-section {
    margin-bottom: 56px;
}

.shuffle-button {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.shuffle-button:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.shuffle-button i {
    transition: transform 0.6s ease;
}

.shuffle-button:hover i {
    transform: rotate(180deg);
}

.random-cocktail-container {
    padding: 0 16px;
}

.random-cocktail-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 248, 231, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 12px 40px rgba(21, 71, 38, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    grid-template-columns: 400px 1fr;
    align-items: stretch;
    max-height: 280px;
}

.random-cocktail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(21, 71, 38, 0.25);
    border-color: rgba(212, 175, 55, 0.5);
}

.random-cocktail-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.random-cocktail-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.random-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(21, 71, 38, 0.3) 60%, rgba(21, 71, 38, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
}

.random-cocktail-info {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.random-cocktail-info h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.random-cocktail-info .cocktail-description {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    opacity: 0.85;
}

/* Regular Cocktail Rows */
.cocktails-scroll-container {
    position: relative;
    padding: 0 16px;
    overflow: visible;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(21, 71, 38, 0.15);
    outline: none;
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--accent-gold);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(21, 71, 38, 0.25);
}

.scroll-arrow i {
    color: var(--primary-color);
    font-size: 18px;
}

.scroll-arrow-left {
    left: 24px;
}

.scroll-arrow-right {
    right: 24px;
}

.scroll-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.cocktails-row {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
}

.cocktails-row .cocktail-card {
    min-width: 180px;
    max-width: 180px;
    flex-shrink: 0;
}

.cocktails-row::-webkit-scrollbar {
    display: none;
}

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

.cocktail-card:hover {
    box-shadow: 0 12px 36px rgba(21, 71, 38, 0.18);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(212, 175, 55, 0.2);
}

.cocktail-card-image {
    position: relative;
    width: 148px;
    height: 148px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cocktail-card-image img {
    width: 148px;
    height: 148px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cocktail-card:hover .cocktail-card-image img {
    transform: scale(1.08);
}

.play-button {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a5a30 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 16px rgba(21, 71, 38, 0.4);
}

.cocktail-card:hover .play-button {
    opacity: 1;
    transform: translateY(0);
}

.play-button:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #1a5a30 0%, var(--primary-color) 100%);
}

.play-button i {
    color: white;
    font-size: 16px;
    margin-left: 3px;
}

.cocktail-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cocktail-description {
    font-size: 0.85rem;
    color: var(--text-dark);
    opacity: 0.7;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .discovery-page {
        padding-top: 90px;
    }
    
    .section-header {
        padding: 0 12px;
    }
    
    .cocktails-row {
        padding: 0 12px;
    }
    
    .recent-cocktails-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .discovery-page {
        padding-top: 80px;
    }
    
    .cocktail-card {
        padding: 12px;
    }
    
    .cocktail-card-image {
        margin-bottom: 12px;
    }
    
    .play-button {
        width: 40px;
        height: 40px;
        bottom: 8px;
        right: 8px;
    }
    
    .play-button i {
        font-size: 14px;
    }
    
    .recent-cocktails-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .recent-cocktail-card {
        height: 70px;
    }
    
    .recent-cocktail-card img {
        width: 70px;
        height: 70px;
    }
    
    .random-cocktail-card {
        grid-template-columns: 1fr;
    }
    
    .random-cocktail-image {
        min-height: 250px;
    }
    
    .random-cocktail-info {
        padding: 24px;
    }
    
    .random-cocktail-info h3 {
        font-size: 1.5rem;
    }
    
    .scroll-arrow {
        width: 40px;
        height: 40px;
    }
    
    .scroll-arrow i {
        font-size: 14px;
    }
    
    .scroll-arrow-left {
        left: 20px;
    }
    
    .scroll-arrow-right {
        right: 20px;
    }
}

/* Empty State */
.empty-recent-state {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 2px dashed rgba(21, 71, 38, 0.2);
    padding: 3rem;
    text-align: center;
}

.empty-recent-state p {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-recent-state small {
    color: var(--text-dark);
    opacity: 0.6;
    font-size: 0.9rem;
}
