/* Global Styles */
:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #FFD700;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --text-muted: #6c757d;
    --background-light: #f8f9fa;
    --background-cream: #faf6f2;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-gold: linear-gradient(135deg, #FFD700, #FFA500);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--background-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 69, 19, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(139, 69, 19, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(139, 69, 19, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.5s both;
}

.animate-slide-up {
    animation: fadeIn 1s ease-out 1s both;
}

.animate-bounce:hover {
    animation: bounce 1s;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    padding: 1rem 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(139, 69, 19, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--gradient);
    transition: all 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
    left: 10%;
}

/* Hero Section */
.menu-hero {
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('images/artisanal-pastries.jpg') center/cover no-repeat;
    position: relative;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Menu Navigation */
.menu-nav {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

.menu-categories {
    padding: 1rem 0;
}

.category-tabs {
    gap: 1rem;
}

.category-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--background-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 120px;
}

.category-tab:hover, .category-tab.active {
    background: var(--gradient);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    text-decoration: none;
}

.category-tab i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-tab:hover i, .category-tab.active i {
    animation: bounce 1s;
}

/* Menu Content */
.menu-content {
    background: var(--background-light);
    min-height: 100vh;
}

.menu-section {
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s ease-out forwards;
}

.menu-section:nth-child(even) {
    animation-delay: 0.2s;
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.subsection-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Menu Items without Images */
.menu-item-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 69, 19, 0.1);
    height: 100%;
    margin-bottom: 1.5rem;
}

.menu-item-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.menu-item-card.featured {
    border: 2px solid var(--accent-color);
    position: relative;
}

.menu-item-card.featured::before {
    content: '⭐ FEATURED';
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.menu-item-card.special {
    background: linear-gradient(135deg, #fff, #ffeaa7);
}

.menu-item-card.cream-special {
    background: linear-gradient(135deg, #fff, #e8f5e8);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.item-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    flex: 1;
}

.item-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--success-color);
    background: var(--background-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-left: 1rem;
}

.item-description {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Badges */
.item-badges, .featured-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-popular {
    background: var(--danger-color);
    color: var(--white);
}

.badge-traditional {
    background: var(--primary-color);
    color: var(--white);
}

.badge-halal {
    background: var(--success-color);
    color: var(--white);
}

.badge-healthy {
    background: var(--info-color);
    color: var(--white);
}

.badge-vegetarian {
    background: var(--success-color);
    color: var(--white);
}

.badge-special {
    background: var(--gradient-gold);
    color: var(--text-dark);
}

.badge-premium {
    background: var(--gradient);
    color: var(--white);
}

.badge-fresh {
    background: var(--info-color);
    color: var(--white);
}

.badge-chocolate {
    background: #8B4513;
    color: var(--white);
}

/* Featured Menu Items */
.featured-menu-item {
    background: var(--white);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: var(--shadow-hover);
    margin-bottom: 3rem;
    border: 2px solid var(--accent-color);
}

.featured-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.featured-menu-item:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 1rem 2rem;
}

.featured-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.featured-description {
    margin: 1rem 0;
    color: var(--text-dark);
    font-size: 1.2rem;
    line-height: 1.7;
}

.featured-price {
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--background-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

/* Simple Items List */
.additional-items {
    margin-top: 3rem;
}

.simple-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
}

.simple-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.simple-item.special {
    border-left-color: var(--accent-color);
    background: linear-gradient(135deg, #fff, #fffbf0);
}

.simple-item.cream {
    border-left-color: var(--info-color);
    background: linear-gradient(135deg, #fff, #f0f8ff);
}

.simple-item-info h6 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.simple-item-info small {
    color: var(--text-light);
}

.simple-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--success-color);
}

/* Pastry Cards */
.pastry-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 1.5rem;
}

.pastry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.pastry-card.premium {
    border: 2px solid var(--accent-color);
}

.pastry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pastry-header h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
    font-size: 1.2rem;
}

.pastry-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success-color);
}

.pastry-description {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.pastry-badges {
    display: flex;
    gap: 0.5rem;
}

/* Cookie Items */
.cookie-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.cookie-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.cookie-item h6 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.rating {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Cake Cards */
.cake-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.cake-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.cake-content h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cake-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.ingredients {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.cake-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
    background: var(--background-light);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 1rem;
}

.cake-note {
    margin-top: 1rem;
}

.cake-note small {
    color: var(--text-muted);
    font-style: italic;
}

/* Bulk Info */
.bulk-pastries-card {
    background: var(--gradient);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.bulk-pastries-card h5 {
    margin-bottom: 1rem;
    color: var(--white);
}

.bulk-pastries-card strong {
    color: var(--accent-color);
}

/* Order Info */
.order-info {
    background: var(--background-cream);
}

.info-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    animation: shimmer 2s infinite;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-buttons {
    margin: 2rem 0;
}

.contact-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.contact-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-primary {
    background: var(--gradient);
    border: none;
    color: var(--white);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    margin-top: 0;
}

.footer p {
    margin: 0;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .category-tabs {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .category-tab {
        padding: 0.75rem 1rem;
        min-width: 100px;
    }
    
    .item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .item-price {
        margin-left: 0;
        margin-top: 0.5rem;
        align-self: flex-start;
    }
    
    .featured-content {
        padding: 1rem 0;
    }
    
    .featured-menu-item {
        padding: 2rem;
    }
    
    .contact-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .menu-content {
        padding: 40px 0;
    }
    
    .category-tab {
        padding: 0.5rem 0.75rem;
        min-width: 80px;
        font-size: 0.9rem;
    }
    
    .category-tab i {
        font-size: 1.2rem;
    }
    
    .simple-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .simple-item .simple-price {
        align-self: flex-end;
    }
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.menu-item-card, .pastry-card, .cake-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease-out forwards;
}

.menu-item-card:nth-child(1) { animation-delay: 0.1s; }
.menu-item-card:nth-child(2) { animation-delay: 0.2s; }
.menu-item-card:nth-child(3) { animation-delay: 0.3s; }
.menu-item-card:nth-child(4) { animation-delay: 0.4s; }
.menu-item-card:nth-child(5) { animation-delay: 0.5s; }
.menu-item-card:nth-child(6) { animation-delay: 0.6s; }

/* Interactive elements */
.menu-item-card, .pastry-card, .cake-card, .simple-item, .category-tab {
    cursor: pointer;
}

/* Accessibility */
.btn:focus, .category-tab:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar, .footer, .order-info {
        display: none;
    }
    
    .menu-hero {
        height: auto;
        background: var(--white);
        color: var(--text-dark);
        page-break-inside: avoid;
    }
    
    .menu-section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .menu-item-card, .pastry-card, .cake-card {
        box-shadow: none;
        border: 1px solid var(--text-light);
        page-break-inside: avoid;
    }
    
    .item-price, .simple-price, .cake-price {
        color: var(--text-dark) !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .menu-item-card, .pastry-card, .cake-card {
        border: 2px solid var(--text-dark);
    }
    
    .badge {
        border: 1px solid var(--text-dark);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
