/* Fun Dynamic Cocktail Menu Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --primary-dark: #0d0d0d;
    --secondary-dark: #1a1a1a;
    --accent-gold: #d4a853;
    --accent-copper: #b87333;
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-subtle: rgba(255, 255, 255, 0.5);
    --card-bg: rgba(26, 26, 26, 0.95);
    --border-subtle: rgba(212, 168, 83, 0.2);
}

/* Body Override */
.fun-menu-body {
    background: var(--primary-dark);
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
}

/* Hero Section */
.cocktail-hero {
    position: relative;
    margin-top: 130px;
    padding: 80px 20px 60px;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(ellipse at center top, rgba(212, 168, 83, 0.08) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 10vw, 5rem);
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.title-line {
    display: block;
    color: var(--text-light);
}

.title-line.accent {
    color: var(--accent-gold);
    font-style: italic;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-decoration {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.deco-star {
    color: var(--accent-gold);
    font-size: 0.6rem;
    opacity: 0.6;
}

.hero-decoration::before,
.hero-decoration::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* Hero Shapes - Subtle */
.hero-shapes {
    display: none;
}

.shape {
    display: none;
}

/* Main Content */
.fun-main-content {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Category Section */
.category-section {
    margin-bottom: 50px;
    position: relative;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 0 0 15px 0;
    border-bottom: 1px solid var(--border-subtle);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s ease;
}

.category-header.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.category-badge {
    display: none;
}

.badge-icon {
    display: none;
}

.category-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--category-color, var(--accent-gold));
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    font-weight: 600;
}

.category-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-subtle) 0%, transparent 100%);
}

/* Drinks Grid - Pinterest/Masonry Layout */
.drinks-grid {
    column-count: 5;
    column-gap: 20px;
}

/* Drink Card */
.drink-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    break-inside: avoid;
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
}

.drink-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.drink-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-gold);
}

/* Featured Card */
.drink-card.featured {
    background: #714a08;
}

.drink-card.featured.no-image {
    background: #714a08;
}

/* ========================================
   DYNAMIC SIZE CLASSES - Content-based heights
   ======================================== */

/* Large cards - taller image, more content */
.drink-card.size-large .card-image-wrapper {
    height: 280px;
}

.drink-card.size-large .drink-name {
    font-size: 1.6rem;
}

.drink-card.size-large .drink-description {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

/* Medium cards */
.drink-card.size-medium .card-image-wrapper {
    height: 200px;
}

.drink-card.size-medium .drink-name {
    font-size: 1.4rem;
}

.drink-card.size-medium .drink-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

/* Small cards - compact */
.drink-card.size-small .card-image-wrapper {
    height: 140px;
}

.drink-card.size-small .drink-name {
    font-size: 1.1rem;
}

.drink-card.size-small .drink-description {
    display: none;
}

.drink-card.size-small .card-content {
    padding: 12px;
}

.drink-card.size-small .card-action {
    padding: 0 12px 12px;
}

.drink-card.size-small .view-btn {
    padding: 6px 14px;
    font-size: 0.7rem;
}

.drink-card.size-small .price-tag {
    padding: 5px 10px;
    font-size: 0.85rem;
}

/* Desktop large: 5 columns */
@media (min-width: 1200px) {
    .drinks-grid {
        column-count: 5;
    }
}

/* Desktop: 4 columns */
@media (max-width: 1199px) and (min-width: 1025px) {
    .drinks-grid {
        column-count: 4;
    }
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
    .drinks-grid {
        column-count: 2;
        column-gap: 15px;
    }
    
    .drink-card {
        margin-bottom: 15px;
    }
    
    .drink-card.size-large .card-image-wrapper {
        height: 220px;
    }
}

/* Mobile: 2 columns */
@media (max-width: 768px) {
    .drinks-grid {
        column-count: 2;
        column-gap: 12px;
    }
    
    .drink-card {
        margin-bottom: 12px;
    }
    
    .drink-card.size-large .card-image-wrapper {
        height: 180px;
    }
    
    .drink-card.size-large .drink-name {
        font-size: 1.3rem;
    }
    
    .drink-card.size-medium .card-image-wrapper {
        height: 160px;
    }
    
    .drink-card.size-small .card-image-wrapper {
        height: 120px;
    }
}

/* Card Image */
.card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.drink-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.drink-card:hover .drink-image {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
}

/* Price Tag */
.price-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent-gold);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    z-index: 2;
}

/* Card Content */
.card-content {
    padding: 16px;
}

.drink-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.drink-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.drink-description * {
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Card Action */
.card-action {
    padding: 0 16px 16px;
}

.view-btn {
    display: inline-block;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.drink-card:hover .view-btn {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* ========================================
   NO IMAGE CARD STYLES - Elegant Dark Design
   ======================================== */
.drink-card.no-image {
    background: var(--secondary-dark);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.drink-card.no-image:hover {
    border-color: var(--accent-gold);
}

/* No Image Top Accent */
.no-image-header {
    height: 4px;
    background: var(--category-color, var(--accent-gold));
}

.cocktail-icon {
    display: none;
}

/* No Image Content */
.no-image-content {
    flex: 1;
    padding: 20px 16px 12px;
    display: flex;
    flex-direction: column;
}

.no-image-content .drink-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-light);
    line-height: 1.3;
}

.no-image-content .drink-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}

.no-image-content .drink-description * {
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* No Image Footer */
.no-image-footer {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-subtle);
}

.no-image-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-gold);
}

.no-image-footer::before {
    content: 'TAP TO VIEW';
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-subtle);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.drink-card.no-image:hover .no-image-footer::before {
    color: var(--accent-gold);
}

/* No Image Card Hover Effects */
.drink-card.no-image:hover .drink-name {
    color: var(--accent-gold);
}

/* No Image Size Variations - Content-based */
.drink-card.no-image.size-large .drink-name {
    font-size: 1.5rem;
}

.drink-card.no-image.size-large .drink-description {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

.drink-card.no-image.size-large .no-image-price {
    font-size: 1.3rem;
}

.drink-card.no-image.size-medium .drink-name {
    font-size: 1.3rem;
}

.drink-card.no-image.size-medium .drink-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

.drink-card.no-image.size-small .no-image-content {
    padding: 14px 14px 10px;
}

.drink-card.no-image.size-small .drink-name {
    font-size: 1rem;
    margin-bottom: 0;
}

.drink-card.no-image.size-small .drink-description {
    display: none;
}

.drink-card.no-image.size-small .no-image-footer {
    padding: 10px 14px;
}

.drink-card.no-image.size-small .no-image-price {
    font-size: 1rem;
}

.drink-card.no-image.size-small .no-image-footer::before {
    display: none;
}

/* Fun Modal */
.fun-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.fun-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}
#modalfoodimage1 {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fun-modal-content {
    background: var(--secondary-dark);
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-close span {
    color: var(--text-light);
    font-size: 20px;
    line-height: 1;
}

.modal-close:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.modal-close:hover span {
    color: var(--primary-dark);
}

.modal-image-section {
    position: relative;
    height: 300px;
    width: 100%;
    overflow: hidden;
}

.modal-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal No Image State */
.modal-image-section.no-image {
    height: 200px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.modal-image-section.no-image::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.2) 0%, transparent 60%);
    animation: pulseGlow 3s ease-in-out infinite;
}

.modal-image-section.no-image::after {
    content: '';
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.modal-image-section.no-image img {
    display: none;
}

.modal-price-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-dark);
    color: var(--accent-gold);
    padding: 10px 25px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
    z-index: 5;
}

.modal-info-section {
    padding: 40px 25px 25px;
    text-align: center;
}

.modal-info-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    color: var(--text-light);
    margin: 0 0 12px 0;
    font-weight: 600;
}

.modal-divider {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-copper));
    margin: 0 auto 15px;
}

.modal-info-section p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Whiskey Pricing in Modal */
.whiskey-pricing {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-subtle);
}

.whiskey-pricing .pricing-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.whiskey-pricing .pricing-item {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--accent-gold);
}

.whiskey-pricing .pricing-item strong {
    color: var(--text-muted);
    font-weight: 500;
}

/* Back to Top Button */
.fun-back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--secondary-dark);
    border: 1px solid var(--accent-gold);
    border-radius: 4px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.fun-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fun-back-to-top:hover {
    background: var(--accent-gold);
}

.fun-back-to-top:hover span {
    color: var(--primary-dark);
}

.fun-back-to-top span {
    color: var(--accent-gold);
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Floating Decorations - Hidden for clean look */
.floating-decorations {
    display: none;
}

.float-item {
    display: none;
    opacity: 0.15;
    animation: floatAround 20s linear infinite;
}

.float-1 {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.float-2 {
    top: 60%;
    right: 8%;
    animation-delay: -7s;
}

.float-3 {
    bottom: 15%;
    left: 15%;
    animation-delay: -14s;
}

@keyframes floatAround {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(10deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(30px) rotate(-10deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cocktail-hero {
        padding: 40px 15px;
    }
    
    .hero-title {
        letter-spacing: 2px;
    }
    
    .category-header {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .category-badge {
        width: 40px;
        height: 40px;
    }
    
    .badge-icon {
        font-size: 1.2rem;
    }
    
    .category-line {
        display: none;
    }
    
    .drinks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .card-image-wrapper {
        height: 150px;
    }
    
    .card-content {
        padding: 12px;
    }
    
    .drink-name {
        font-size: 1rem;
    }
    
    .drink-description {
        font-size: 13px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        box-orient: vertical;
        overflow: hidden;
    }
    
    .card-action {
        padding: 0 12px 12px;
    }
    
    .view-btn {
        padding: 8px 15px;
        font-size: 0.7rem;
    }
    
    .price-tag {
        padding: 5px 10px;
        font-size: 0.85rem;
        top: 10px;
        right: 10px;
    }
    
    .fun-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-image-section {
        height: 220px;
    }
    
    .modal-price-badge {
        padding: 10px 25px;
        font-size: 1.4rem;
    }
    
    .modal-info-section {
        padding: 40px 20px 25px;
    }
    
    .modal-info-section h2 {
        font-size: 1.5rem;
    }
    
    .float-item {
        font-size: 1.5rem;
        opacity: 0.1;
    }
}

@media (max-width: 480px) {
    .drinks-grid {
        grid-template-columns: 1fr;
    }
    
    .card-image-wrapper {
        height: 180px;
    }
    
    .drink-card.featured .card-image-wrapper {
        height: 200px;
    }
}

/* Scrollbar Styling */
.fun-menu-body::-webkit-scrollbar {
    width: 8px;
}

.fun-menu-body::-webkit-scrollbar-track {
    background: #1a1a2e;
}

.fun-menu-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #E63946, #c62828);
    border-radius: 4px;
}

.fun-menu-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff4757, #E63946);
}

/* Selection Color */
.fun-menu-body ::selection {
    background: #E63946;
    color: #ffffff;
}

/* Additional Animations for Polish */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.drink-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.drink-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease infinite;
}
