/*
===============================================
CROWN SPAGHETTI & PIZZA PALACE - STYLES
===============================================
*/

/* ===== FONT IMPORTS ===== */

@font-face {
    font-family: "BNNektar";
    src: url("/static/fonts/BNNektar.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "BNRendallScript";
    src: url("/static/fonts/BNRendallScript.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "BNRendallScript-Cursive";
    src: url("/static/fonts/BNRendallScript-Cursive.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "BNZeeka";
    src: url("/static/fonts/BNZeeka.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

/* ===== GLOBAL STYLES ===== */

:root {
    --primary-color: #bd3826;
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    color: var(--primary-color);
}

:root,
html,
body {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4em;
}

/* ===== FONT UTILITY CLASSES ===== */

.mogra-regular {
    font-family: "Mogra", system-ui;
    font-weight: 400;
    font-style: normal;
}

.open-sans {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.lobster-regular {
    font-family: "Lobster", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.bn-nektar {
    font-family: "BNNektar", serif;
    font-weight: 400;
    font-style: normal;
}

.bn-rendall-script {
    font-family: "BNRendallScript", cursive;
    font-weight: 400;
    font-style: normal;
}

.bn-zeeka {
    font-family: "BNZeeka", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* ===== UTILITY CLASSES ===== */

.white-image {
    filter: brightness(0) invert(1);
}

/* ===== HEADER & NAVIGATION ===== */

.checker-bar {
    margin-top: 1em;
    width: 100%;
    background-image: url("/static/images/checkers-tileable.png");
    background-repeat: repeat;
    height: 45px;
    align-self: stretch;
    flex-shrink: 0;
}

.logo {
    height: 12rem;
}

.nav-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-bar li {
    position: relative;
    font-family: "Open Sans", sans-serif;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: bold;
}

.nav-bar li::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.nav-bar li:hover::after {
    width: 100%;
}

.nav-bar li.active::after {
    width: 100%;
}

/* ===== LAYOUT COMPONENTS ===== */

.outlined-content {
    border: 3px solid var(--primary-color);
    padding: 1.5rem;
    position: relative;
}

.content-title {
    font-family: "Mogra", system-ui;
    font-weight: 400;
    font-style: normal;
    background-color: white;
    font-size: 2rem;
    position: absolute;
    padding: 0 20px;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.hero-block {
    top: 0;
    width: 100%;
}

.hero-block .tagline {
    width: 50%;
}

.two-cols-block {
    margin: auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5em;
}

.color-block {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
    margin-top: 40px;
}

.color-block .about-us {
    font-size: 1.5em;
    max-width: 80%;
    margin: auto;
}

.color-block > img {
    width: 100%;
    padding: 30px;
    object-fit: cover;
}

/* ===== HOME PAGE SPECIFIC ===== */

.order-now {
    text-align: center;
}

.tagline {
    width: 100%;
    max-width: min(90%, 600px);
    margin: auto;
}

.events-section {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    align-items: center;
    margin: 40px 50px;
    padding: 30px 0;
}

.events-title {
    font-size: 4rem;
    text-align: right;
    color: var(--primary-color);
    font-weight: bold;
    padding-right: 20px;
}

.events-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.event-card {
    display: flex;
    gap: 20px;
    align-items: center;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(189, 56, 38, 0.1);
}

.event-card .date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    min-width: 80px;
    font-weight: bold;
}

.event-card .date .month {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.event-card .date .day {
    font-size: 2.5rem;
    line-height: 1;
    font-weight: bold;
}

.event-image {
    flex-shrink: 0;
}

.event-image img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #ddd;
    background: #f5f5f5;
}

.event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-info .title {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
    font-family: "BNZeeka", sans-serif;
    margin-bottom: 8px;
}

.event-info .description {
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
}

/* ===== ACTION BUTTONS & ANIMATIONS ===== */

.action-buttons {
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
    margin-top: 2em;
}

.action-button {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: fit-content;
}

.action-button img {
    display: block;
    height: 200px;
}

.action-button img:first-child {
    position: relative;
    z-index: 1;
}

.action-button img:last-child {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transition: transform 0.3s ease-in-out;
}

.action-button:hover img:last-child {
    animation: rotate-slow 4s linear infinite;
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/*
===============================================
PAGE-SPECIFIC STYLES
===============================================
*/

/* ===== ABOUT PAGE ===== */

.about-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.6;
    font-size: 20px;
    position: relative;
}

/* Parallax Moped Rider */
.moped-rider {
    position: absolute;
    width: 200px;
    height: auto;
    z-index: 50;
    opacity: 1;
    visibility: visible;
    transform: scaleX(-1);
    transition: top 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.2s ease-in-out;
    pointer-events: none;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.3));
}

/* Add a subtle hover effect for when it's visible */
.moped-rider:hover {
    transform: scale(1.1);
}

.hero-section {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-section h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
}

.hero-section .tagline {
    font-size: 1.3rem;
    font-style: italic;
    color: #666;
}

.owner-story {
    margin-bottom: 5rem;
}

.story-content {
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 3rem;
    align-items: start;
}

.owner-image {
    text-align: center;
}

.owner-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    object-fit: cover;
}

.story-text {
    color: white;
}

.story-text h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
}

.story-text h3 {
    color: #bebebe;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: normal;
    font-style: italic;
    margin-top: -1rem;
}

.story-text p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-align: justify;
    width: 90%;
}

.tradition-section {
    margin-bottom: 5rem;
    text-align: center;
}

.tradition-section h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.tradition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tradition-card {
    background: #f8f8f8;
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
}

.tradition-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tradition-card p {
    color: #555;
    line-height: 1.6;
}

.values-section {
    background: var(--primary-color);
    color: white;
    padding: 3rem;
    margin-bottom: 4rem;
}

.values-section h2 {
    color: white;
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.values-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

blockquote {
    font-style: italic;
    font-size: 1.2rem;
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid white;
}

blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.visit-us {
    text-align: center;
    margin-bottom: 3rem;
}

.visit-us h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.visit-us p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.signature {
    font-style: italic;
    font-size: 1.2rem;
    margin-top: 2rem !important;
}

.signature .name {
    font-family: "Birthstone", cursive;
    font-size: 2rem;
    color: var(--primary-color);
}

/* ===== MENU PAGE ===== */
.menu-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.menu-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--primary-color);
    color: white;
}

.menu-hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
}

.menu-subtitle {
    font-size: 1.5rem;
    font-style: italic;
    opacity: 0.9;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.menu-category {
    background: white;
    border: 3px solid var(--primary-color);
    padding: 25px;
}

.menu-category h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px;
}

.category-desc {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.menu-item {
    cursor: pointer;
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border: 2px solid #eee;
}

.menu-item:hover {
    border-color: var(--primary-color);
    background: #fff;
}

.menu-item.featured {
    background: #fff3e0;
    border: 3px solid #ff6f00;
    position: relative;
}

.menu-item.featured .price {
    background: #ff7e1c;
    border-color: #ff6f00;
    color: white;
}

.menu-item.featured:hover {
    border-color: var(--primary-color);
    background: #fff;
}

.menu-item .item-name {
    font-family: "BNZeeka", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* 
.menu-item.featured::before {
    content: "SPECIAL";
    position: absolute;
    top: -12px;
    right: 15px;
    background: #ff6f00;
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: bold;
} */

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.item-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0;
}

.price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2e7d32;
    background: #e8f5e8;
    padding: 5px 12px;
    border: 2px solid #2e7d32;
}

.description {
    line-height: 1.6;
    color: #555;
    margin: 0;
    font-size: 1rem;
}

.special-section {
    grid-column: 1 / -1;
    background: #fff8e1;
    border-color: #ff6f00;
}

.special-section h2 {
    color: #e65100;
    border-bottom-color: #e65100;
}

.drinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.drink-item {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
}

.drink-item:hover {
    border-color: var(--primary-color);
    background: #fff;
}

.drink-item h4 {
    margin: 0;
    color: #333;
    font-size: 1rem;
}

.drink-item span {
    color: #2e7d32;
    font-weight: bold;
}

.menu-footer {
    background: #f8f8f8;
    border: 3px solid var(--primary-color);
    padding: 25px;
    text-align: center;
    margin-top: 40px;
}

.dimi-note {
    font-style: italic;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

/* ===== DELIVERY PAGE ===== */
.delivery-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.delivery-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--primary-color);
    color: white;
}

.delivery-hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
}

.delivery-subtitle {
    font-size: 1.5rem;
    font-style: italic;
    opacity: 0.9;
}

.delivery-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.delivery-form-section {
    background: white;
    border: 3px solid var(--primary-color);
    padding: 30px;
}

.delivery-form-section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.form-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.delivery-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

.form-group label {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input {
    padding: 12px 15px;
    border: 2px solid #ddd;
    font-size: 1rem;
    background: #f9f9f9;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.check-delivery-btn {
    padding: 15px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.check-delivery-btn:hover {
    background: #a02e22;
}

.check-delivery-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.delivery-result {
    background: #fff3e0;
    border: 3px solid #ff6f00;
    padding: 25px;
    text-align: center;
}

.result-message h3 {
    color: #e65100;
    font-size: 2rem;
    margin-bottom: 10px;
}

.result-message > p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 25px;
}

.try-again-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 15px;
}

.try-again-btn:hover {
    background: #a02e22;
}

/* Delivery Success Styles - Legacy (replaced by embedded styles) */

.delivery-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.delivery-info h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.delivery-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.delivery-card {
    background: #f8f8f8;
    padding: 20px;
    border: 3px solid var(--primary-color);
    border-left: 8px solid var(--primary-color);
}

.delivery-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.delivery-card p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.contact-section {
    grid-column: 1 / -1;
    background: var(--primary-color);
    color: white;
    padding: 30px;
    text-align: center;
}

.contact-section h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-info p {
    font-size: 1.1rem;
    margin: 0;
}

.contact-info strong {
    font-weight: bold;
}

/* ===== 404 ERROR PAGE ===== */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-content {
    text-align: center;
    max-width: 500px;
}

.error-code {
    font-size: 8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: -1rem;
}

.error-message {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.error-description {
    font-size: 1.2rem;
    color: #666;
    margin: 30px 0;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.back-home-btn,
.menu-btn {
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.back-home-btn {
    background: var(--primary-color);
    color: white;
}

.back-home-btn:hover {
    background: #a02e22;
    transform: translateY(-2px);
}

.menu-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.menu-btn:hover {
    background: var(--primary-color);
    color: white;
}

/*
===============================================
RESPONSIVE DESIGN - MOBILE STYLES
===============================================
*/

@media (max-width: 768px) {
    main {
        gap: 0em;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    /* ===== NAVIGATION ===== */
    .nav-bar {
        gap: 1.5rem;
    }

    .nav-bar li {
        font-size: 1.2em;
    }

    /* ===== LAYOUT ADJUSTMENTS ===== */
    .hero-block .tagline {
        width: 95%;
    }

    .color-block {
        margin-top: 6em;
        display: flex;
        flex-direction: column;
    }

    .color-block h2 {
        font-size: 1.75em;
        margin-bottom: 0.5em;
    }

    .color-block img {
        padding: 20px;
    }

    .color-block .about-us {
        padding-bottom: 2em;
    }

    /* ===== HOME PAGE ===== */
    .action-buttons {
        gap: 20px;
    }

    .action-button img {
        height: 150px;
    }

    /* ===== EVENTS SECTION MOBILE ===== */
    .events-section {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 15px;
        text-align: center;
    }

    .events-title {
        font-size: 3rem;
        text-align: center;
        padding-right: 0;
    }

    .event-card {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }

    .event-card .date {
        align-self: center;
        min-width: 70px;
        padding: 10px 15px;
    }

    .event-card .date .day {
        font-size: 2rem;
    }

    .event-image img {
        width: 100%;
        padding: 15px 15px;
    }

    .event-info .title {
        font-size: 1.5rem;
    }

    .event-info .description {
        font-size: 0.9rem;
    }

    /* ===== ABOUT PAGE ===== */
    .moped-rider {
        display: none !important;
    }

    .story-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1em;
    }

    .story-text > p {
        text-align: center;
    }

    .story-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 1em;
    }

    .owner-image {
        margin: auto;
    }

    .tradition-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 3rem;
    }

    .timeline-item:nth-child(odd) .year,
    .timeline-item:nth-child(even) .year {
        order: 1;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .event,
    .timeline-item:nth-child(even) .event {
        order: 2;
        text-align: left;
    }

    .hero-section h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .about-page {
        padding: 1rem;
        gap: 0px;
    }

    /* ===== MENU PAGE ===== */

    .menu-hero {
        margin-bottom: 15px;
    }

    .menu-subtitle {
        font-size: 1rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .drinks-grid {
        grid-template-columns: 1fr;
    }

    .menu-page {
        padding: 15px;
    }

    /* ===== DELIVERY PAGE ===== */

    .delivery-hero {
        margin-bottom: 15px;
    }

    .delivery-subtitle {
        font-size: 1rem;
    }

    .delivery-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .delivery-cards {
        gap: 15px;
    }

    .contact-info {
        text-align: center;
    }

    .delivery-page {
        padding: 15px;
    }

    /* ===== 404 ERROR PAGE MOBILE ===== */
    .error-code {
        font-size: 5rem;
    }

    .error-message {
        font-size: 1.8rem;
    }

    .error-actions {
        flex-direction: column;
        gap: 15px;
    }

    .back-home-btn,
    .menu-btn {
        width: 100%;
        text-align: center;
    }
}
