/* Order Page Styles */

/* Ensure navbar consistency across pages */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-logo .logo {
    height: 52px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--secondary-color);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.nav-toggle span {
    width: 2rem;
    height: 0.25rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.nav-toggle.active span:first-child {
    transform: rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Order Page Main Styles */
.order-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding-top: 100px;
}

.order-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    margin-bottom: 3rem;
}

.order-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.order-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.order-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.delivery-note {
    text-align: center;
    margin-bottom: 3rem;
}

.delivery-note p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Delivery Options Grid */
.delivery-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.delivery-button {
    display: block;
    text-decoration: none;
    background: white;
    border: 3px solid transparent;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.delivery-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.button-content {
    display: flex;
    align-items: center;
    padding: 2rem;
    gap: 1rem;
}

.button-content img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.button-content span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Apple Maps icon styling */
.apple-maps-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #007aff, #0051d5);
    border-radius: 12px;
    color: white;
}

/* Google Maps icon styling */
.google-maps-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #4285f4, #3367d6);
    border-radius: 12px;
    color: white;
}

/* Froogle icon styling */
.froogle-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    color: white;
}

/* Specific delivery service styles */
.delivery-button.uber-eats {
    border-color: #06c755;
}

.delivery-button.uber-eats:hover {
    border-color: #06c755;
    background: linear-gradient(135deg, #06c755, #00b14f);
}

.delivery-button.uber-eats:hover .button-content span {
    color: white;
}

.delivery-button.doordash {
    border-color: #ff3008;
}

.delivery-button.doordash:hover {
    border-color: #ff3008;
    background: linear-gradient(135deg, #ff3008, #e02b06);
}

.delivery-button.doordash:hover .button-content span {
    color: white;
}

.delivery-button.grubhub {
    border-color: #ff8000;
}

.delivery-button.grubhub:hover {
    border-color: #ff8000;
    background: linear-gradient(135deg, #ff8000, #e67300);
}

.delivery-button.grubhub:hover .button-content span {
    color: white;
}

.delivery-button.apple-maps {
    border-color: #007aff;
}

.delivery-button.apple-maps:hover {
    border-color: #007aff;
    background: linear-gradient(135deg, #007aff, #0051d5);
}

.delivery-button.apple-maps:hover .button-content span {
    color: white;
}

.delivery-button.froogle {
    border-color: #10b981;
}

.delivery-button.froogle:hover {
    border-color: #10b981;
    background: linear-gradient(135deg, #10b981, #059669);
}

.delivery-button.froogle:hover .button-content span {
    color: white;
}

.delivery-button.caviar {
    border-color: #ff6b6b;
}

.delivery-button.caviar:hover {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.delivery-button.caviar:hover .button-content span {
    color: white;
}

.delivery-button.google {
    border-color: #4285f4;
}

.delivery-button.google:hover {
    border-color: #4285f4;
    background: linear-gradient(135deg, #4285f4, #3367d6);
}

.delivery-button.google:hover .button-content span {
    color: white;
}

/* Animation for fade-in effect */
.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.delivery-options .delivery-button:nth-child(2) {
    animation-delay: 0.1s;
}

.delivery-options .delivery-button:nth-child(3) {
    animation-delay: 0.2s;
}

.delivery-options .delivery-button:nth-child(4) {
    animation-delay: 0.3s;
}

.delivery-options .delivery-button:nth-child(5) {
    animation-delay: 0.4s;
}

.delivery-options .delivery-button:nth-child(6) {
    animation-delay: 0.5s;
}

.delivery-options .delivery-button:nth-child(7) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Location Select Section */
.location-select {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 3rem;
}

.location-select h2 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.location-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.location-button {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.location-button:hover,
.location-button.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.location-info {
    position: relative;
    min-height: 150px;
}

.location-details {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.location-details.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.location-details h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.location-details p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.location-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.location-details a:hover {
    text-decoration: underline;
}

/* Footer Styles for Order Page */
footer {
    background-color: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact h4,
.social h4 {
    color: white;
    margin-bottom: 1rem;
}

.contact p,
.social p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.contact a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.social-links img {
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.social-links a:hover img {
    filter: brightness(1);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .order-header h1 {
        font-size: 2.5rem;
    }
    
    .order-header p {
        font-size: 1.1rem;
    }
    
    .delivery-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .button-content {
        padding: 1.5rem;
    }
    
    .location-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .location-button {
        width: 200px;
    }
    
    .location-select {
        padding: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        left: 0;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        z-index: 999;
        padding: 2rem 0;
    }
    
    .nav-links.active {
        transform: translateX(0%);
    }
    
    .nav-links a {
        padding: 1rem;
        display: block;
        color: var(--text-primary);
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary-color);
    }
}

@media (max-width: 480px) {
    .order-header h1 {
        font-size: 2rem;
    }
    
    .order-container {
        padding: 0 1rem;
    }
    
    .location-select {
        padding: 1.5rem;
    }
    
    .location-select h2 {
        font-size: 1.5rem;
    }
    
    .button-content {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .button-content span {
        font-size: 1rem;
    }
}

/* Loading animation for buttons */
.delivery-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.delivery-button:hover::before {
    left: 100%;
}

/* Additional improvements */
.delivery-button:active {
    transform: scale(0.98);
}

/* Improved mobile navigation */
@media (max-width: 768px) {
    .nav-toggle.active span:first-child {
        transform: rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
    }
}

/* Focus states for accessibility */
.delivery-button:focus,
.location-button:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .delivery-button {
        border-width: 3px;
    }
    
    .delivery-button:hover {
        border-width: 3px;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        animation: none;
    }
    
    .delivery-button {
        transition: none;
    }
    
    .location-details {
        transition: none;
    }
}
