/* Components CSS - Specific component styling */

/* Header Component Styles */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.header-scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #FF8A3D;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #FF8A3D;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active {
    transform: rotate(90deg);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu-link:hover {
    background: #f9fafb;
    color: #FF8A3D;
    padding-left: 24px;
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

/* Hero Component Styles */
.hero-background {
    background-image: linear-gradient(135deg, rgba(255, 138, 61, 0.1) 0%, rgba(75, 212, 255, 0.1) 100%),
        url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.85) 50%,
            rgba(255, 255, 255, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #4b5563;
}

.hero-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .hero-cta-buttons {
        flex-direction: row;
        gap: 1.5rem;
    }
}

.hero-rewards-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    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;
}

.hero-rewards-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.hero-hours-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Location Component Styles */
.location-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.location-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.location-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #FF8A3D;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.location-content {
    padding: 2rem;
}

.location-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.location-feature:hover {
    background: #f9fafb;
}

.location-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF8A3D;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Menu Component Styles */
.menu-tabs {
    background: white;
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    display: flex;
    margin-bottom: 2rem;
}

.menu-tab {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.menu-tab.active {
    background: #FF8A3D;
    color: white;
    box-shadow: 0 2px 4px rgba(255, 138, 61, 0.3);
}

.menu-tab:hover:not(.active) {
    background: #f3f4f6;
    color: #374151;
}

.location-tabs {
    background: white;
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    display: flex;
    margin-bottom: 1.5rem;
}

.location-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
}

.location-tab.active {
    background: #FF8A3D;
    color: white;
    box-shadow: 0 2px 4px rgba(255, 138, 61, 0.3);
}

.location-tab-label {
    font-size: 0.75rem;
    display: block;
    margin-top: 0.25rem;
    opacity: 0.9;
}

/* Filter Buttons */
.flavor-filter-btn,
.allergen-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.flavor-filter-btn.active,
.allergen-btn.active {
    background: #FF8A3D;
    color: white;
    border-color: #FF8A3D;
}

.flavor-filter-btn:hover:not(.active),
.allergen-btn:hover:not(.active) {
    border-color: #FF8A3D;
    color: #FF8A3D;
    background: #fff7ed;
}

/* Flavor Cards */
.flavor-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    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;
    transform-origin: center;
    position: relative;
}

.flavor-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 10;
}

.flavor-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.flavor-card:hover .flavor-image {
    transform: scale(1.05);
}

.flavor-content {
    padding: 1.5rem;
}

.flavor-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.flavor-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.flavor-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.flavor-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.flavor-badge.dairy-free {
    background: #f3e8ff;
    color: #7c3aed;
}

.flavor-badge.no-sugar {
    background: #dbeafe;
    color: #2563eb;
}

.flavor-badge.non-fat {
    background: #dcfce7;
    color: #16a34a;
}

.flavor-badge.low-fat {
    background: #fef3c7;
    color: #d97706;
}

.flavor-calories {
    color: #FF8A3D;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Toppings Section */
.toppings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.toppings-category {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.toppings-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topping-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: #374151;
    transition: color 0.3s ease;
}

.topping-item:hover {
    color: #FF8A3D;
}

.topping-icon {
    color: #FF8A3D;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Contact Form Styles */
.contact-form {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .form-grid.two-cols {
        grid-template-columns: 1fr 1fr;
    }

    .form-grid.three-cols {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-label {
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input,
.form-textarea,
.form-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #FF8A3D;
    box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.form-submit {
    background: #FF8A3D;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.form-submit:hover {
    background: #e67429;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 138, 61, 0.3);
}

.form-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Contact Info Styles */
.contact-info {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.contact-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.contact-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.contact-item:hover {
    background: #f9fafb;
}

.contact-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF8A3D;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-text {
    flex: 1;
    color: #374151;
    line-height: 1.5;
}

.contact-title {
    font-weight: 600;
    color: #FF8A3D;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #FF8A3D;
    color: white;
    transform: translateY(-2px);
}

/* Footer Component Styles */
.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: white;
    transform: translateX(4px);
}

.footer-location {
    background: #374151;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.footer-location:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.footer-location-title {
    color: white;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-location-text {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #374151;
    color: #d1d5db;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    background: #FF8A3D;
    color: white;
    transform: translateY(-2px);
}

/* Newsletter Signup */
.newsletter-signup {
    background: #374151;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.newsletter-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-description {
    color: #d1d5db;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #4b5563;
    border-radius: 12px;
    background: #374151;
    color: white;
    font-size: 0.875rem;
}

.newsletter-input::placeholder {
    color: #9ca3af;
}

.newsletter-input:focus {
    outline: none;
    border-color: #FF8A3D;
    box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.1);
}

.newsletter-button {
    background: #FF8A3D;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.newsletter-button:hover {
    background: #e67429;
    transform: translateY(-1px);
}

/* Store Hours Display */
.hours-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hours-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hours-card {
    background: #374151;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.hours-title {
    color: #FF8A3D;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hours-list {
    color: #d1d5db;
    font-size: 0.875rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.hours-day {
    color: #d1d5db;
}

.hours-time {
    color: white;
    font-weight: 500;
}

/* Rewards Component Styles */
.rewards-section {
    background: linear-gradient(135deg, rgba(255, 138, 61, 0.05) 0%, rgba(75, 212, 255, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.rewards-content {
    position: relative;
    z-index: 10;
}

.rewards-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.rewards-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.rewards-feature:hover {
    transform: translateX(8px);
}

.rewards-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 138, 61, 0.1);
    color: #FF8A3D;
    border-radius: 12px;
    flex-shrink: 0;
}

.rewards-text h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.rewards-text p {
    color: #6b7280;
    line-height: 1.6;
}

.rewards-image {
    position: relative;
}

.rewards-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-width: 200px;
}

.rewards-badge-text {
    color: #FF8A3D;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .location-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .location-tab {
        border-radius: 12px;
    }

    .menu-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .menu-tab {
        border-radius: 12px;
    }

    .flavor-card {
        margin-bottom: 1rem;
    }

    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }

    .form-grid.two-cols,
    .form-grid.three-cols {
        grid-template-columns: 1fr;
    }

    .rewards-features {
        gap: 1.5rem;
    }

    .rewards-feature {
        gap: 0.75rem;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Print Styles */
@media print {

    .header-fixed,
    .mobile-menu,
    .rewards-badge,
    .newsletter-signup {
        display: none;
    }

    .hero-section {
        background: none;
        color: black;
    }

    .footer-section {
        background: white;
        color: black;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {

    .flavor-card,
    .location-card,
    .contact-form,
    .contact-info {
        border: 2px solid #000;
    }

    .form-input,
    .form-textarea,
    .form-select {
        border-width: 3px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .flavor-card,
    .location-card,
    .rewards-feature,
    .contact-item {
        transition: none;
    }

    .flavor-card:hover,
    .location-card:hover {
        transform: none;
    }
}