/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #c62828;
    --secondary: #ffd54f;
    --dark: #212121;
    --light: #f5f5f5;
    --accent: #388e3c;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.error-message {
    text-align: center;
    padding: 40px;
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    color: #c62828;
}

.error-message p {
    margin-bottom: 10px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

section {
    padding: 60px 0;
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: var(--dark);
}

h1 {
    font-size: 2.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header h1 {
    color: var(--light);
}

/* Header Info Styles */
.header-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.info-item i {
    color: var(--secondary);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.info-item span {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-info {
        max-width: 90%;
    }
    
    .info-item {
        padding: 10px 15px;
    }
    
    .info-item span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header-info {
        gap: 8px;
    }
    
    .info-item {
        padding: 8px 12px;
    }
    
    .info-item span {
        font-size: 0.85rem;
    }
    
    .info-item i {
        font-size: 1rem;
    }
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    position: relative;
    margin-bottom: 40px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary);
}

footer h3 {
    color: var(--light);
}

p {
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.header-btns {
    display: flex;
    flex-direction: column;
    width: 80%;
    align-items: center;
    margin: 20px auto 0 auto;
}

.header-btns .btn {
    display: block;
    margin: 0 auto;
    text-align: center;
}

.btn:hover {
    background-color: #a71d1d;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Header Styles */
header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/header_img.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.logo {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.tagline {
    font-size: 1.5rem;
    max-width: 700px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.header-btns {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: var(--dark);
}

/* About Section */
#about {
    background-color: white;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
    text-align: justify;
    line-height: 1.7;
    text-justify: inter-word;
}

.about-text p {
    margin-bottom: 18px;
    text-align: justify;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* New Item */
.new-item-banner {
    background: linear-gradient(135deg, #fff3e0 0%, #ffecb3 100%);
    border-radius: 20px;
    padding: 0; /* Remove padding from banner */
    border: 3px dashed var(--primary);
    box-shadow: 0 10px 30px rgba(198, 40, 40, 0.15);
    overflow: hidden;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    animation: floatUpDown 3s ease-in-out infinite;
}

.banner-content {
    display: flex;
    align-items: stretch; /* Make columns equal height */
    min-height: 300px;
}

.banner-image {
    width: 350px;  /* Very large image */
    height: auto;  /* Auto height to match content */
    border-radius: 0; /* No border radius for full edge */
    object-fit: cover;
    border: none;
    box-shadow: none;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-text h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 2rem;
}

.banner-text h4 {
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 2.8rem;
    font-weight: bold;
    line-height: 1.1;
}

/* Special Offers Section */
#offers {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-top: 3px solid var(--secondary);
    border-bottom: 3px solid var(--secondary);
}

.offers-content {
    max-width: 800px;
    margin: 0 auto;
}

.offer-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.offer-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    flex-shrink: 0;
}

.offer-icon i {
    font-size: 1.5rem;
}

.offer-details h3 {
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.offer-condition {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0;
}

.offer-notice {
    background: var(--secondary);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
    border: 2px dashed var(--primary);
}

.offer-notice p {
    margin: 0;
    color: var(--dark);
    font-size: 1.1rem;
}

.offer-notice i {
    color: var(--primary);
    margin-right: 10px;
}

/* Responsive Design for Offers */
@media (max-width: 768px) {
    .offer-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .offer-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .offer-details h3 {
        font-size: 1.1rem;
    }
    
    .offer-condition {
        font-size: 1rem;
    }
    
    .offer-notice p {
        font-size: 1rem;
    }
}

/* Fireworks Styles */
#fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
}

.firework-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    pointer-events: none;
}

.wednesday-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF6347);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 10000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Menu Section */
#menu {
    background-color: white;
    position: relative;
    overflow: hidden; /* Contain the lanterns within menu section */
    min-height: 100vh; /* Ensure menu has height */
}

/* Interactive Lanterns */
#interactive-lanterns {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.interactive-lantern {
    position: absolute;
    pointer-events: none;
    animation: floatUpAndFade 8s ease-out forwards;
}

.lantern-body {
    width: 40px;
    height: 60px;
    background: linear-gradient(45deg, #c62828, #e53935);
    border-radius: 20px 20px 25px 25px;
    position: relative;
    box-shadow: 0 0 20px rgba(198, 40, 40, 0.3);
}

.lantern-top {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 8px;
    background: #ffd54f;
    border-radius: 7px 7px 0 0;
}

.lantern-bottom {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 6px;
    background: #ffd54f;
    border-radius: 0 0 5px 5px;
}

.lantern-tassel {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 25px;
    background: #ffd54f;
    animation: sway 3s ease-in-out infinite;
}

.lantern-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 45px;
    border: 1px solid rgba(255, 213, 79, 0.3);
    border-radius: 15px 15px 18px 18px;
}

@keyframes floatUpAndFade {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }
    10% {
        transform: translateY(-20px) scale(1);
        opacity: 1;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) scale(1.2);
        opacity: 0;
    }
}

@keyframes sway {
    0%, 100% {
        transform: translateX(-50%) rotate(-2deg);
    }
    50% {
        transform: translateX(-50%) rotate(2deg);
    }
}

.menu-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.category-btn {
    padding: 8px 16px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.category-btn.active, .category-btn:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.menu-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-10px);
}

.item-image {
    height: 200px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-item:hover .item-image img {
    transform: scale(1.1);
}

.item-details {
    padding: 20px;
}

.item-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.item-name h3 {
    margin: 0;
    font-size: 1.1rem;
}

.price {
    color: var(--primary);
    font-weight: bold;
    white-space: nowrap;
}

/* Contact Section */
#contact {
    background-color: white;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item a {
    color: var(--dark);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.opening-hours {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.opening-hours h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.hours-table {
    width: 100%;
}

.hours-table tr {
    border-bottom: 1px solid #eee;
}

.hours-table td {
    padding: 8px 0;
}

.hours-table td:last-child {
    text-align: right;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    text-align: center;
    padding: 30px 0;
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

/* Additional styles for JSON menu functionality */
.spicy-tag, .popular-tag, .allergen-tag {
    display: inline-block;
    padding: 2px 8px;
    margin: 5px 5px 0 0;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.spicy-tag {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.popular-tag {
    background-color: #fff8e1;
    color: #ff8f00;
    border: 1px solid #ffecb3;
}

.allergen-tag {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.loading {
    text-align: center;
    padding: 40px;
    font-style: italic;
    color: #666;
}

.item-tags {
    margin-top: 10px;
}

.item-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .header-btns {
        flex-direction: column;
        width: 80%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .menu-categories {
        gap: 6px;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .menu-items {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .menu-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .category-btn {
        flex-shrink: 0;
    }
}

/* Christmas Opening Hours Section */
#christmas-hours {
    background: linear-gradient(135deg, #c62828 0%, #d32f2f 100%);
    color: white;
    padding: 40px 0;
}

#christmas-hours h2 {
    color: white;
    margin-bottom: 25px;
}

#christmas-hours h2:after {
    background-color: #ffd54f;
}

.christmas-content {
    max-width: 600px;
    margin: 0 auto;
}

.christmas-notice {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 3px solid #ffd54f;
}

.christmas-notice p:first-child {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #c62828;
    font-weight: bold;
}

.christmas-notice i {
    color: #c62828;
    margin-right: 8px;
}

.christmas-dates {
    margin: 20px 0;
}

.date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #c62828;
}

.date-item.closed {
    background: #ffebee;
    border-left-color: #757575;
}

.date-item .date {
    font-weight: bold;
    color: #c62828;
}

.date-item.closed .date {
    color: #757575;
}

.date-item .time {
    font-weight: bold;
    color: #388e3c;
}

.date-item.closed .time {
    color: #d32f2f;
    font-weight: bold;
}

.christmas-message {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed #ffd54f;
    color: #c62828;
    font-weight: bold;
    font-style: italic;
}

/* Responsive Design for Christmas Section */
@media (max-width: 768px) {
    .christmas-notice {
        padding: 20px;
    }
    
    .date-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .date-item .time {
        align-self: flex-end;
    }
}

/* Snowflakes Animation */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 1em;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    user-select: none;
    pointer-events: none;
    opacity: 0.8;
}

/* Different snowflake sizes */
.snowflake.small {
    font-size: 0.8em;
    opacity: 0.6;
}

.snowflake.medium {
    font-size: 1.2em;
    opacity: 0.8;
}

.snowflake.large {
    font-size: 1.5em;
    opacity: 1;
}

.snowflake {
    --x: 0px;
    --y: 0px;
    transform: translate(var(--x), var(--y)) rotate(0deg);
}

@keyframes fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes sway {
    50% { --x: 15px; }
}


/* Blur effect for distant snowflakes */
.snowflake.distant {
    opacity: 0.4;
    filter: blur(1px);
}

.snowflake.very-distant {
    opacity: 0.2;
    filter: blur(2px);
}