/* Qulai Pizzai - Custom Styles */

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
}

/* Hero Section Gradient */
.hero-gradient {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.9) 0%, rgba(255, 112, 67, 0.85) 100%);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, #e53935 0%, #ff7043 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(229, 57, 53, 0.4);
}

/* Secondary Button */
.btn-secondary {
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: scale(1.05);
    background-color: #fff;
    color: #e53935;
}

/* Feature Icon Animation */
.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Pizza Card Image Zoom */
.pizza-card img {
    transition: all 0.3s ease;
}

.pizza-card:hover img {
    transform: scale(1.1);
}

/* Navigation Link Underline Effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e53935;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Testimonial Card */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* Promotion Pulse Animation */
.promo-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Smooth Scroll */
.scroll-smooth {
    scroll-behavior: smooth;
}

/* Fade In Up Animation */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Line Clamp for descriptions */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #e53935;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c62828;
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Loading State for Buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Image Loading Placeholder */
.img-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; }
}

/* Responsive Typography */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #e53935;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    nav, footer, .btn-primary, .btn-secondary {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ============================================
   ORDER WIZARD STYLES
   ============================================ */

/* Wizard Step Transitions */
.wizard-step {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wizard-step.hidden {
    display: none;
}

.wizard-step.animate-fade-in {
    animation: fadeInStep 0.4s ease-out;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Progress Indicator */
.step-indicator {
    transition: all 0.3s ease;
}

.step-circle {
    transition: all 0.3s ease;
}

.step-label {
    transition: all 0.3s ease;
}

/* Time Slot Buttons */
.time-slot-btn {
    transition: all 0.2s ease;
}

.time-slot-btn:hover {
    transform: translateY(-2px);
}

.time-slot-btn.border-primary {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.1) 0%, rgba(255, 112, 67, 0.1) 100%);
}

/* Size Selection */
.size-label {
    transition: all 0.2s ease;
    cursor: pointer;
}

.size-radio:checked + .size-label {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.1) 0%, rgba(255, 112, 67, 0.1) 100%);
    border-color: #e53935;
    color: #e53935;
}

/* Pizza Item Card */
.pizza-item {
    transition: all 0.3s ease;
}

.pizza-item:hover {
    border-color: rgba(229, 57, 53, 0.3);
    box-shadow: 0 4px 20px rgba(229, 57, 53, 0.1);
}

/* Customization Panel */
.customize-panel {
    transition: all 0.3s ease;
}

.customize-toggle i {
    transition: transform 0.3s ease;
}

/* Cart Item */
.cart-item {
    transition: all 0.3s ease;
}

.cart-item:hover {
    border-color: rgba(229, 57, 53, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Quantity Buttons */
.qty-btn {
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background-color: rgba(229, 57, 53, 0.1);
}

/* Form Inputs */
input[type="text"],
input[type="tel"],
input[type="date"] {
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus {
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* Checkbox Styling */
input[type="checkbox"] {
    accent-color: #e53935;
    cursor: pointer;
}

/* Topping & Addon Labels */
.topping-checkbox + span,
.addon-checkbox + span {
    transition: all 0.2s ease;
}

.topping-checkbox:checked + span,
.addon-checkbox:checked + span {
    color: #e53935;
}

/* Success Animation */
#success-message {
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Optimizations for Wizard */
@media (max-width: 640px) {
    .wizard-step {
        padding: 1.5rem;
    }
    
    .step-indicator .step-label {
        font-size: 0.65rem;
        max-width: 60px;
        text-align: center;
        line-height: 1.2;
    }
    
    .time-slot-btn {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .pizza-item {
        margin-bottom: 1rem;
    }
    
    .pizza-item img {
        height: 160px;
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .cart-item img {
        width: 100%;
        height: 120px;
    }
}

/* Loading State for Confirm Button */
#confirm-order-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Error States */
input.border-red-500 {
    background-color: rgba(239, 68, 68, 0.05);
}

.error-message {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notification Toast for Order Page */
.notification-toast {
    z-index: 9999;
}

/* Smooth scroll for wizard container */
section:has(.wizard-step) {
    scroll-margin-top: 100px;
}
