/* Royal Burger - Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
    .section {
        max-width: 1400px;
    }

    .hero-content h1 {
        font-size: 5rem;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .nav {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .section {
        padding: 1.5rem 0.5rem;
    }

        .section h2 {
            font-size: 2rem;
            margin-bottom: 1.5rem;
        }

    .category-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .menu-item {
        padding: 1.2rem;
    }

        .menu-item h3 {
            font-size: 1.3rem;
            margin-bottom: 0.6rem;
        }

        .menu-item p {
            font-size: 0.95rem;
            margin-bottom: 1.2rem;
        }

    .price {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .add-to-cart {
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
    }

    .royal-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .about-text {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    /* Footer adjustments */
    .footer {
        padding: 2rem 1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    /* Modal adjustments */
    .cart-content,
    .options-modal-content,
    .verification-content,
    .checkout-options-content {
        width: 98%;
        padding: 1rem;
        margin: 0.5rem;
        border-radius: 15px;
    }

    .cart-title,
    .form-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 1rem;
    }

        .cart-item > div:last-child {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
        }

    .cart-total {
        font-size: 1.5rem;
        padding: 0.8rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

        .form-group label {
            font-size: 0.95rem;
            margin-bottom: 0.4rem;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            font-size: 1rem;
            padding: 0.8rem;
        }

    .checkout-btn {
        font-size: 1.1rem;
        padding: 0.9rem 1.2rem;
    }

    /* Options Modal adjustments */
    .options-group {
        padding: 0.6rem;
        margin-bottom: 0.8rem;
    }

        .options-group label {
            font-size: 0.95rem;
            margin-bottom: 0.4rem;
        }

        .options-group input[type="checkbox"] {
            transform: scale(1.1);
            margin-left: 0.3rem;
        }

        .options-group span {
            font-size: 0.9rem;
            margin-right: 0.3rem;
        }

    /* Verification Modal adjustments */
    .verification-content {
        max-width: 95%;
    }

        .verification-content h3 {
            font-size: 1.3rem;
            margin-bottom: 1rem;
        }

        .verification-content p {
            font-size: 0.95rem;
            margin-bottom: 1rem;
        }

        .verification-content input[type="text"] {
            width: calc(100% - 10px);
            font-size: 1rem;
            padding: 0.7rem;
        }

        .verification-content button {
            width: 95%;
            font-size: 1rem;
            padding: 0.7rem 1.2rem;
            margin: 0.2rem;
        }

    #recaptcha-container {
        margin: 0.5rem auto;
        min-height: 60px;
    }

    /* Quantity Controls adjustments */
    .quantity-controls {
        gap: 0.5rem;
    }

    .quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    /* Success Message adjustments */
    .success-message {
        top: 80px;
        width: 90%;
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 20px;
    }

    /* Checkout Options Modal adjustments */
    .checkout-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .checkout-option {
        padding: 1.2rem;
    }

    .option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .checkout-method-btn {
        font-size: 1rem;
        padding: 0.9rem 1.2rem;
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .header {
        padding: 0.8rem 1.5rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo-img {
        width: 50px;
        height: 50px;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content .subtitle {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .section h2 {
        font-size: 2.5rem;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .cart-content,
    .options-modal-content,
    .verification-content,
    .checkout-options-content {
        width: 95%;
        padding: 2rem;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav {
        justify-content: space-between;
    }

    .header {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-img {
        width: 45px;
        height: 45px;
    }

    .cart-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content .subtitle {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-content::before {
        font-size: 3rem;
        top: -50px;
    }

    .section {
        padding: 2rem 1rem;
    }

        .section h2 {
            font-size: 2.2rem;
            margin-bottom: 2rem;
        }

    .category-title {
        font-size: 1.8rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .menu-item {
        padding: 1.5rem;
    }

        .menu-item h3 {
            font-size: 1.4rem;
        }

    .price {
        font-size: 1.3rem;
    }

    .add-to-cart {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }

    .footer-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }

    /* Modal adjustments */
    .cart-content,
    .options-modal-content,
    .verification-content,
    .checkout-options-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }

    .cart-title,
    .form-title {
        font-size: 1.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 1.1rem;
        padding: 1rem;
    }

    .checkout-btn {
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
    }

    .options-buttons {
        flex-direction: column;
        gap: 1rem;
    }

        .options-buttons button {
            width: 100%;
        }

    .verification-content button {
        width: 90%;
        margin: 0.3rem;
    }

    /* Checkout Options Modal responsive */
    .checkout-options-content {
        width: 98%;
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .checkout-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .checkout-option {
        padding: 1.2rem;
    }

    .option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

        .option-header h4 {
            font-size: 1.1rem;
        }

    .checkout-method-btn {
        font-size: 1rem;
        padding: 0.9rem 1.2rem;
    }

    .checkout-summary {
        padding: 1.2rem;
    }

    .customer-info p {
        font-size: 0.9rem;
    }
}

/* Mobile Landscape */
@media (max-width: 667px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .subtitle {
        font-size: 1.2rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .cart-content,
    .verification-content,
    .checkout-options-content {
        max-height: 90vh;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .header {
        padding: 0.5rem 1rem;
    }

    .logo {
        font-size: 1.1rem;
        gap: 0.5rem;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .cart-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .hero-content .subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.8rem;
    }

    .cta-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .section {
        padding: 2rem 1rem;
    }

        .section h2 {
            font-size: 1.8rem;
        }

    .category-title {
        font-size: 1.4rem;
    }

    .menu-item {
        padding: 1rem;
    }

        .menu-item h3 {
            font-size: 1.2rem;
        }

        .menu-item p {
            font-size: 0.9rem;
        }

    .price {
        font-size: 1.1rem;
    }

    .add-to-cart {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }

    .cart-content,
    .options-modal-content,
    .verification-content,
    .checkout-options-content {
        padding: 0.8rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 0.7rem;
    }

    .checkout-btn {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }

    /* Checkout Options Mobile */
    .checkout-options-content {
        padding: 1rem;
    }

    .checkout-option {
        padding: 1rem;
    }

    .option-header h4 {
        font-size: 1rem;
    }

    .option-description {
        font-size: 0.9rem;
    }

    .option-features li {
        font-size: 0.85rem;
    }

    .checkout-method-btn {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
    }

    .pos-status {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .subtitle {
        font-size: 1.1rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .cta-btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .category-title {
        font-size: 1.4rem;
    }

    .menu-item {
        padding: 1rem;
    }

        .menu-item h3 {
            font-size: 1.2rem;
        }

        .menu-item p {
            font-size: 0.9rem;
        }

    .price {
        font-size: 1.1rem;
    }

    .add-to-cart {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }

    .cart-content,
    .options-modal-content,
    .verification-content,
    .checkout-options-content {
        padding: 0.8rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 0.7rem;
    }

    .checkout-btn {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }

    .logo {
        font-size: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    .royal-badge {
        text-rendering: optimizeLegibility;
    }
}

/* Dark Mode Preference */
@media (prefers-color-scheme: dark) {
    /* Already optimized for dark theme */
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-content::before {
        animation: none;
    }

    .float-animation,
    .pulse-animation {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .menu-item {
        border-width: 3px;
    }

    .cart-btn,
    .add-to-cart,
    .cta-btn,
    .checkout-btn {
        border: 2px solid var(--dark-bg);
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        border-width: 3px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cart-modal,
    .modal-overlay,
    .verification-modal,
    .success-message,
    .checkout-options-modal {
        display: none !important;
    }

    .hero {
        height: auto;
        padding: 2rem 0;
    }

    .section {
        padding: 1rem 0;
    }

    .menu-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .menu-item,
    .cart-content {
        border: 1px solid black !important;
        background: white !important;
    }
}
