/*
Theme Name: Chope
Description: 
Version: 1.0
Author: Papavins
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #eee0d9;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    height: 85px;
    top: -10px;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: flex-start; /* Changed from space-between to flex-start */
    text-align: left;
    align-items: center;
    gap: 4rem; /* Added gap to space out logo, nav-links, and CTA button */
    padding: 0.6rem 0; /* Reduced from 1.2rem to 0.6rem */
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}

.logo img {
    height: 70px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #cd1029;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #0b7dcc;
}

.cta-button {
    background: #af998b;
    color: #ffffff;
    padding: 0.6rem 1.2rem; /* Reduced padding from 0.8rem 1.5rem */
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-left: auto;
    transform: translateY(-5px);    
}

.cta-button:hover {
    background: #0b7dcc;
}

/* Hero Section */
.hero {
    background: url("https://chope.id/wp-content/uploads/2025/08/DSC_00161.jpg") center/cover;
    color: rgb(0, 0, 0);
    padding: 0;
    margin-top: 60px; /* Reduced from 80px to match smaller header */
    min-height: 70vh;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    min-height: 70vh;
    padding: 4rem 2rem;
    max-width: 1440px;
    margin: 0 auto;
}

.hero-text {
    background: #ffffff;
    padding: 3rem;
    border-radius: 0;
    max-width: 500px;
    box-shadow: none;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #cd1029;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #646464;
    line-height: 1.6;
}

.hero-image {
    display: none;
}

/* Large Images Grid Layout */
.large-images-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Column variations */
.large-images-cols-1 {
    grid-template-columns: 1fr;
}

.large-images-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.large-images-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Large Image Item */
.large-image-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.large-image-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.large-image-container {
    position: relative;
    width: 100%;
}

.large-image-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.large-image-item:hover .large-image-container img {
    transform: scale(1.05);
}

/* Overlay for text content */
.large-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.6) 50%,
        transparent 100%
    );
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.large-image-item:hover .large-image-overlay {
    transform: translateY(0);
}

.large-image-content {
    position: relative;
    z-index: 2;
}

.large-image-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
    line-height: 1.3;
}

.large-image-description {
    font-size: 1rem;
    margin: 0;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
}

/* Empty state for large images */
.large-image-empty {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px dashed #dee2e6;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-style: italic;
    height: 400px;
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    text-align: center;
}

.large-image-empty::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

/* Second Menu */
.original-images {
    padding: 4rem 0;
    background: #fff;
}

.original-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, auto));
    gap: 2rem;
    justify-content: center;
}

.original-image-item img {
    display: block;
    max-width: 100%;
    height: auto; /* keep original aspect ratio */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Menu Grid Styles */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.menu-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.menu-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-card:hover .menu-card-image img {
    transform: scale(1.05);
}

.menu-card-content {
    padding: 1.2rem;
    text-align: center;
}

.menu-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.menu-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: #cd1029;
    margin: 0;
}

/* Empty card placeholder (for customizer preview) */
.menu-card.empty {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #999;
    font-style: italic;
}

/* Enhanced Menu Grid Item Styles */
.menu-item {
    opacity: 1 !important;
    transform: none !important;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: white;
    border: 2px solid transparent;
}

/* Fix for loading states that might be stuck */
.menu-item.loading,
.menu-item-loading {
    opacity: 1 !important;
}

.menu-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: #e74c3c;
}

.menu-item img {
    opacity: 1 !important;
    transition: transform 0.3s ease !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}

.menu-item:hover img {
    transform: scale(1.05);
}

.menu-item-content {
    padding: 16px;
    text-align: center;
}

.menu-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.menu-item:hover .menu-item-title {
    color: #e74c3c;
}

.menu-item-price {
    font-size: 1rem;
    font-weight: 600;
    color: #e74c3c;
    margin: 0;
}

.menu-item-empty {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-style: italic;
    position: relative;
    overflow: hidden;
}

.menu-item-empty::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #eee0d9;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    padding: 6rem 0;
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.benefit-icon {
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    margin-right: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Environmental Section */
.environmental {
    background: #2d5a27;
    color: white;
    padding: 6rem 0;
}

.environmental-content {
    text-align: center;
}

.environmental h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.environmental-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.env-feature {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
}

.env-feature h3 {
    margin-bottom: 1rem;
    color: #90ee90;
}

/* CTA Section */
.cta-section {
    background: #f8f9fa;
    padding: 6rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    margin-top: 2rem;
    color: #ccc;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Mobile Responsive */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Responsive Design for Large Images */
@media (max-width: 1024px) {
    .large-images-grid {
        gap: 1.5rem;
        max-width: 900px;
    }
    
    .large-image-container img {
        height: 350px;
    }
    
    .large-image-empty {
        height: 350px;
    }
    
    .large-image-overlay {
        padding: 1.5rem;
    }
    
    .large-image-title {
        font-size: 1.3rem;
    }
    
    .large-image-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        padding: 2rem 1rem;
        min-height: 60vh;
    }

    .hero-text {
        padding: 2rem;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .benefits-content {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .environmental-features {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    /* Large Images Mobile */
    .large-images-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .large-images-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .large-images-grid {
        gap: 1.2rem;
        max-width: 600px;
    }
    
    .large-image-container img {
        height: 280px;
    }
    
    .large-image-empty {
        height: 280px;
    }
    
    .large-image-overlay {
        padding: 1.2rem;
    }
    
    .large-image-title {
        font-size: 1.2rem;
    }
    
    .large-image-description {
        font-size: 0.85rem;
    }
    
    .large-image-item:hover {
        transform: translateY(-5px) scale(1.01);
    }

    /* Menu Grid Mobile */
    .menu-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
    
    .menu-card-image {
        height: 150px;
    }
    
    .menu-card-content {
        padding: 1rem;
    }
    
    .menu-card-title {
        font-size: 1rem;
    }
    
    .menu-card-price {
        font-size: 0.9rem;
    }
}

@media (min-width: 320px) and (max-width: 480px) {
    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    /* Large Images Small Mobile */
    .large-images-cols-2,
    .large-images-cols-3 {
        grid-template-columns: 1fr !important;
    }
    
    .large-images-grid {
        max-width: 400px;
        gap: 1rem;
    }
    
    .large-image-container img {
        height: 250px;
    }
    
    .large-image-empty {
        height: 250px;
    }
    
    .large-image-overlay {
        padding: 1rem;
    }
    
    .large-image-title {
        font-size: 1.1rem;
    }
    
    .large-image-description {
        font-size: 0.8rem;
    }

    /* Menu Grid Small Mobile */
    .menu-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .menu-card-image {
        height: 180px;
    }
}

/* Loading animation for newly uploaded images */
.menu-item img[src=""], .large-image-item img[src=""] {
    display: none;
}

.menu-item-loading, .large-image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}