/* Restaurant Page Specific Styles */

/* Hero Section */
.restaurant-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 80px;
}

.restaurant-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 50%, #e5e7eb 100%);
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(139, 92, 246, 0.03) 10px,
            rgba(139, 92, 246, 0.03) 20px
        );
    z-index: 0;
}

.restaurant-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.restaurant-hero-bg::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 5%;
    width: 500px;
    height: 400px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 30px;
    z-index: 1;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.05);
}

.restaurant-hero-bg .restaurant-interior {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, transparent 30%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 92, 246, 0.05) 2px,
            rgba(139, 92, 246, 0.05) 4px
        );
    z-index: 2;
}

.restaurant-hero-bg .table-decoration {
    position: absolute;
    bottom: 15%;
    right: 10%;
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    opacity: 0.3;
}

.restaurant-hero-bg .table-decoration::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    border-radius: 10px;
}

.restaurant-hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 60px 0;
}

.restaurant-hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.restaurant-hero .hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary {
    background: white;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.play-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    font-size: 12px;
}

.btn-secondary .play-icon {
    background: var(--primary-green);
}

.btn-secondary:hover .play-icon {
    background: white;
    color: var(--primary-green);
}

/* Restaurant Types Section */
.restaurant-types {
    padding: 60px 0;
    background: white;
}

.restaurant-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

/* Restaurant Types Carousel Styles */
.restaurant-types-carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px;
}

.restaurant-types-carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.restaurant-types-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.restaurant-type-item.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    background: white;
    border-radius: 12px;
    border: 2px solid #f3f4f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.restaurant-type-item.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 32px;
    color: var(--primary-green);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-indicators .indicator:hover {
    background: rgba(16, 185, 129, 0.5);
    transform: scale(1.2);
}

.carousel-indicators .indicator.active {
    background: var(--primary-green);
    width: 30px;
    border-radius: 6px;
}

.restaurant-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid #f3f4f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.restaurant-type-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-green);
}

.type-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.type-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
}

/* Smart Ordering Section */
.smart-ordering {
    padding: 80px 0;
    background: var(--bg-light);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-row.reverse {
    grid-template-columns: 1fr 1fr;
}

.feature-row.reverse .feature-left {
    order: 2;
}

.feature-row.reverse .feature-right {
    order: 1;
}

.feature-image {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    position: relative;
    overflow: hidden;
}

.feature-image-large {
    height: 500px;
}

.feature-image-medium {
    height: 350px;
}

.feature-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
}

.feature-image::after {
    content: '📱';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    opacity: 0.2;
}

.feature-image-large::after {
    content: '🍽️';
    font-size: 150px;
}

.feature-image-medium::after {
    content: '👥';
    font-size: 100px;
}

.feature-image .tablet {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.feature-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.feature-box h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.feature-box p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Payment Features Section */
.payment-features {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: white;
}

.feature-icon-small {
    width: 80px;
    height: 80px;
    background: var(--primary-green);
    border-radius: 16px;
    margin: 0 auto 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.feature-icon-small::before {
    content: '💳';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
}

.feature-card:nth-child(2) .feature-icon-small {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.feature-card:nth-child(2) .feature-icon-small::before {
    content: '🍣';
}

.feature-card:nth-child(3) .feature-icon-small {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.feature-card:nth-child(3) .feature-icon-small::before {
    content: '🖨️';
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Member Management Section */
.member-management {
    padding: 80px 0;
    background: var(--bg-light);
}

/* Multi-level Control Section */
.multi-level-control {
    padding: 80px 0;
    background: white;
}

/* QR Code Ordering Section */
.qr-ordering {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.qr-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1f2937 0%, #111827 50%, #0f172a 100%);
    z-index: 0;
}

.qr-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(220, 38, 38, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(251, 146, 60, 0.15) 0%, transparent 60%);
    z-index: 1;
}

.qr-bg::after {
    content: '🔥';
    position: absolute;
    bottom: 15%;
    left: 10%;
    font-size: 200px;
    opacity: 0.15;
    transform: rotate(-10deg);
    z-index: 1;
    filter: blur(2px);
}

.qr-bg .flame-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(220, 38, 38, 0.3) 0%, transparent 100%);
    z-index: 1;
}

.qr-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.qr-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.qr-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.qr-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.qr-option-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.qr-option-card:hover {
    background: white;
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    border-color: var(--primary-green);
}

.qr-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-block;
    width: 80px;
    height: 80px;
    background: var(--light-green);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.qr-option-card h3 {
    color: var(--text-dark);
}

.qr-option-card p {
    color: var(--text-gray);
}

.qr-option-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.qr-option-card p {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* Footer Updates for Restaurant Page */
.restaurant-page .footer {
    background: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 968px) {
    .restaurant-hero h1 {
        font-size: 36px;
    }

    .restaurant-hero .hero-subtitle {
        font-size: 18px;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-row.reverse .feature-left,
    .feature-row.reverse .feature-right {
        order: 0;
    }

    .feature-image-large,
    .feature-image-medium {
        height: 300px;
    }

    .restaurant-types-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 20px;
    }

    .restaurant-types-carousel-container {
        padding: 0 50px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .qr-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .restaurant-hero {
        min-height: 500px;
        margin-top: 70px;
    }

    .restaurant-hero h1 {
        font-size: 28px;
    }

    .restaurant-hero .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
    }

    .restaurant-types-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .restaurant-types-carousel-container {
        padding: 0 40px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }

    .type-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .type-name {
        font-size: 14px;
    }

    .feature-box {
        padding: 30px 20px;
    }

    .feature-box h3 {
        font-size: 24px;
    }

    .qr-content h2 {
        font-size: 32px;
    }

    .smart-ordering,
    .payment-features,
    .member-management,
    .multi-level-control {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .restaurant-hero-content {
        padding: 40px 0;
    }

    .restaurant-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .restaurant-types-carousel-container {
        padding: 0 30px;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .feature-image-large,
    .feature-image-medium {
        height: 250px;
    }
}
