/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Special+Elite&display=swap');
@import url('https://fonts.googleapis.com/css?family=Sacramento');
@import url('https://cdn.jsdelivr.net/npm/flag-icons@6.11.0/css/flag-icons.min.css');

/* CSS Variables */
:root {
    --light-background: #fff;
    --light-background-secondary: #eaeaea;
    --light-background-header: #fafafa;
    --light-color: #222;
    --light-color-variant: black;
    --light-color-secondary: #999;
    --light-border-color: #dcdcdc;
    --light-table-color: #dcdcdc;

    --dark-background: #232425;
    --dark-background-secondary: #3b3d42;
    --dark-background-header: #1b1c1d;
    --dark-color: #a9a9b3;
    --dark-color-variant: white;
    --dark-color-secondary: #b3b3bd;
    --dark-border-color: #4e4e57;
    --dark-table-color: #4e4e57;

    --max-width: 860px;
}

/* Dark mode (default) */
:root {
    --background: var(--dark-background);
    --background-secondary: var(--dark-background-secondary);
    --background-header: var(--dark-background-header);
    --color: var(--dark-color);
    --color-variant: var(--dark-color-variant);
    --color-secondary: var(--dark-color-secondary);
    --border-color: var(--dark-border-color);
    --table-color: var(--dark-table-color);
}

/* Light mode */
html[data-theme="light"] {
    --background: var(--light-background);
    --background-secondary: var(--light-background-secondary);
    --background-header: var(--light-background-header);
    --color: var(--light-color);
    --color-variant: var(--light-color-variant);
    --color-secondary: var(--light-color-secondary);
    --border-color: var(--light-border-color);
    --table-color: var(--light-table-color);
}

/* Base Styles */
html {
    box-sizing: border-box;
    line-height: 1.15;
    letter-spacing: 0.06em;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: Special Elite, -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.54;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'liga', 'tnum', 'case', 'calt', 'zero', 'ss01', 'locl';
    -webkit-overflow-scrolling: touch;

    display: flex;
    min-height: 100vh;
    flex-direction: column;

    background-color: var(--background);
    color: var(--color);
    transition: background-color 0.2s ease, color 0.2s ease;
}

@media (max-width: 684px) {
    body {
        font-size: 0.7rem;
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
}

h1 {
    font-size: 2.625rem;
    font-family: Sacramento;
    margin: 0.2em 0;
}

h2 {
    font-size: 1.625rem;
    margin-top: 2.5em;
}

h3 {
    font-size: 1.375rem;
}

h4 {
    font-size: 1.125rem;
}

@media (max-width: 684px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    h4 {
        font-size: 1.125rem;
    }
}

p {
    margin: 0.5em 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 10px;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    padding: 10px;
    background-color: var(--background);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    width: 95%;
    max-width: 1200px;
    padding: 0 15px;
}

.header__right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

@media (max-width: 900px) {
    .header__inner {
        padding: 0 10px;
    }

    .header__right {
        gap: 10px;
    }

    .menu__inner {
        gap: 10px;
    }

    .menu__inner a {
        font-size: 0.85rem;
    }

    .logo {
        font-size: 0.85rem;
    }
}

@media (max-width: 684px) {
    .header__right {
        flex-direction: row-reverse;
        gap: 10px;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color);
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background-color: var(--background-secondary);
    border-color: var(--color);
    transform: rotate(20deg);
}

.theme-toggle:active {
    transform: rotate(20deg) scale(0.95);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Dark mode (default) - show moon */
.theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Light mode - show sun */
html[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

html[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg);
}

@media (max-width: 684px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    gap: 0.2em;
    text-decoration: none;
    color: var(--color);
    font-family: Sacramento;
    font-weight: bold;
}

.logo p {
    margin: 0;
    font-size: 1.3em;
}

.logo__cursor {
    display: inline;
    animation: blink 2s linear infinite;
    font-size: 1.1em;
    color: #fe5186;
}

.logo__cursor p {
    margin: 0;
}

@keyframes blink {
    25% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    75% {
        opacity: 1;
    }
}

.logo__text {
    display: none;
}

/* Theme Logo */
.theme-logo {
    position: fixed;
    z-index: 500;
    pointer-events: none;
}

.theme-logo img {
    max-height: 150px;
    width: auto;
    transition: opacity 0.3s ease;
}

/* Landing page logo - centered, no rotation */
.theme-logo-landing {
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
}

.theme-logo-landing img {
    transform: none;
}

/* Rolling logo for other pages - hidden */
.theme-logo-rolling {
    display: none;
}

/* Mobile logo sizing - optimized for smaller screens */
@media (max-width: 684px) {
    .theme-logo img {
        max-height: 120px;
    }

    .theme-logo-landing {
        top: 90px;
    }
}

@keyframes rollIn {
    0% {
        left: 50%;
        transform: translateX(-50%);
    }
    100% {
        left: 20px;
        transform: translateX(0);
    }
}

@keyframes rollRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-390deg);
    }
}

/* Show white logo in dark mode, black logo in light mode */
.logo-dark-theme {
    display: block;
}

.logo-light-theme {
    display: none;
}

html[data-theme="light"] .logo-dark-theme {
    display: none;
}

html[data-theme="light"] .logo-light-theme {
    display: block;
}

/* Menu */
.menu {
    display: flex;
}

.menu__inner {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.menu__inner li {
    list-style: none;
}

.menu__inner a {
    color: var(--color);
    text-decoration: none;
    padding: 5px 0;
    font-size: 0.9rem;
    white-space: nowrap;
}

.menu__inner a:hover {
    color: var(--color-variant);
}

/* Mobile menu trigger */
.menu-trigger {
    display: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.menu-trigger svg {
    width: 100%;
    height: 100%;
    stroke: var(--color);
    fill: var(--color);
}

@media (max-width: 684px) {
    .menu-trigger {
        display: none;
    }

    .header {
        padding: 5px 10px;
    }

    .header__inner {
        flex-wrap: wrap;
        padding: 0 5px;
        justify-content: center;
    }

    .header__inner > a {
        display: flex;
        justify-content: center;
        order: 2;
        margin-bottom: 10px;
        padding-bottom: 5px;
        flex: 1;
    }

    .theme-toggle {
        order: 1;
        position: absolute;
        top: 10px;
        left: 10px;
    }

    #language-switcher {
        position: absolute;
        top: 10px;
        right: 10px;
        order: 3;
    }

    #language-switcher .lang-btn {
        border-radius: 50%;
        width: 36px;
        height: 36px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #language-switcher .lang-btn .flag {
        width: 18px;
        height: 13.5px;
    }

    .header__right {
        order: 4;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 5px;
        padding-top: 5px;
        border-top: 1px solid var(--border-color);
        gap: 10px;
    }

    .menu {
        display: flex;
        flex-shrink: 0;
    }

    .menu__inner {
        justify-content: center;
        gap: 15px;
    }

    #language-switcher .lang-btn:not(.active) {
        display: none;
    }

    #language-switcher.open .lang-btn {
        display: inline-flex;
    }

    #language-switcher.open {
        flex-direction: column;
        position: absolute;
        right: 0;
        top: 0;
        background-color: var(--background);
        border: 1px solid var(--border-color);
        border-radius: 4px;
        padding: 5px;
        gap: 5px;
        z-index: 1001;
    }
}

/* Language Switcher */
#language-switcher {
    display: flex;
    gap: 5px;
    align-items: center;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border: 2px solid transparent;
    border-radius: 20px;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.lang-btn .flag {
    width: 20px;
    height: 15px;
    display: inline-block;
}

.lang-btn.active {
    border-color: var(--color-variant);
    background-color: var(--background-secondary);
}

.lang-btn:hover {
    border-color: var(--color);
    background-color: var(--background-secondary);
    transform: scale(1.05);
}

/* Content */
.content {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

main {
    width: 100%;
    text-align: center;
    padding-bottom: 80px;
}

/* Post */
.post {
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding: 20px;
    margin: 20px auto;
}

@media (max-width: 900px) {
    .post {
        max-width: 600px;
    }
}

.post-title {
    font-size: 2.625rem;
    margin: 0 0 20px;
}

@media (max-width: 684px) {
    .post-title {
        font-size: 1.5rem;
    }
}

.post-title a {
    text-decoration: none;
}

.post-content {
    margin-top: 30px;
    padding-bottom: 120px;
}

.post-info {
    margin-top: 30px;
    font-size: 0.8rem;
    line-height: normal;
    color: var(--color-secondary);
}

.post-info p {
    margin: 0.8em 0;
}

.post-info a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.post-info a:hover {
    border-bottom: 1px solid var(--color);
}

.post-info svg {
    margin-right: 0.8em;
}

.post-info .tag {
    margin-right: 0.5em;
}

.post-info .tag::before {
    content: '#';
}

.post-info .feather {
    display: inline-block;
    vertical-align: -0.125em;
    width: 1em;
    height: 1em;
}

/* Tables */
.post-content table {
    border-collapse: collapse;
    margin: 25px auto;
    font-size: 0.9em;
    width: 100%;
    max-width: 100%;
    border: none;
}

.post-content table th,
.post-content table td {
    padding: 8px 5px;
    border: none;
}

@media (max-width: 684px) {
    .post-content table {
        font-size: 1.4em;
    }

    .post-content table th,
    .post-content table td {
        padding: 12px 2px;
    }

    .menu-table tbody td:first-child {
        padding-right: 5px;
    }

    .menu-table tbody td:nth-child(2) {
        font-size: 1.15em;
    }
}

.post-content table thead tr {
    text-align: left;
    background-color: transparent;
    color: var(--color);
}

.post-content table tbody tr {
    border: none;
}

/* Hide menu table headers */
.menu-table thead {
    display: none;
}

/* Menu table item number */
.menu-table tbody td:first-child {
    width: 30px;
    text-align: left;
    padding-right: 10px;
}

/* Menu table item name with dotted leader */
.menu-table tbody td:nth-child(2) {
    text-align: left;
    position: relative;
    overflow: hidden;
}

.menu-table tbody td:nth-child(2)::after {
    content: " ....................................................................................................................................................................................................";
    position: absolute;
    padding-left: 4px;
    color: var(--color-secondary);
}

/* Hide dots when measuring text height */
.menu-table tbody td:nth-child(2).measuring::after {
    content: none;
}

/* Menu table price */
.menu-table tbody td:nth-child(3) {
    text-align: right;
    white-space: nowrap;
    padding-left: 10px;
    background-color: var(--background);
    position: relative;
    z-index: 1;
}

.price-cell {
    line-height: 1.3;
    vertical-align: middle;
}

@media (max-width: 684px) {
    .price-cell {
        line-height: 1.4;
        font-size: 0.95em;
    }
}

/* Banner */
.banner {
    animation: blink 2s linear infinite;
    color: #fe5186;
}

/* Sharing Buttons */
.sharing-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.sharing-buttons a {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--background-secondary);
    border-radius: 4px;
    text-decoration: none;
}

.sharing-buttons a:hover {
    background-color: var(--border-color);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--background-header);
    margin-top: auto;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--background);
    border-top: 1px solid var(--border-color);
    z-index: 998;
}

.footer__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
}

.footer__content {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 0.7rem;
    text-align: center;
}

.footer__content a {
    text-decoration: none;
    color: var(--color-secondary);
}

.footer__content a:hover {
    text-decoration: underline;
    color: var(--color);
}

@media (max-width: 684px) {
    .footer__content {
        flex-direction: column;
        gap: 10px;
        font-size: 0.6rem;
    }

    .footer__inner {
        padding: 10px;
    }
}

/* Details / Collapsible */
details {
    margin: 20px 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0;
}

details[open] {
    padding: 15px;
}

summary {
    cursor: pointer;
    padding: 15px;
    font-weight: bold;
    background-color: var(--background-secondary);
    user-select: none;
    border-radius: 4px;
}

summary:hover {
    background-color: var(--border-color);
}

details[open] summary {
    border-radius: 4px 4px 0 0;
}

/* Menu Navigation */
.menu-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--background);
    border-top: 1px solid var(--border-color);
    padding: 15px 0;
    margin: 0;
    z-index: 999;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.menu-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1400px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    padding: 0 20px;
}

.menu-nav-list li {
    margin: 0;
}

.menu-nav-link {
    display: inline-block;
    padding: 5px 8px;
    background-color: var(--background-secondary);
    color: var(--color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.7rem;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.menu-nav-link:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

.menu-nav-link:active {
    transform: translateY(0);
}

.menu-nav-link.active {
    background-color: var(--color-variant);
    color: var(--background);
    border-color: var(--color-variant);
    font-weight: bold;
}

@media (max-width: 684px) {
    .menu-navigation {
        padding: 10px 0;
    }

    .menu-nav-list {
        gap: 4px;
        padding: 0 10px;
    }

    .menu-nav-link {
        padding: 4px 6px;
        font-size: 0.6rem;
    }
}

/* Price Legend Note */
.price-legend-note {
    font-style: italic;
}

@media (max-width: 684px) {
    .price-legend-note {
        font-size: 0.7rem !important;
    }
}

/* Menu Category Sections */
.menu-category {
    margin: 40px 0;
    padding-top: 20px;
    scroll-margin-top: 140px;
}

.category-title {
    font-size: 1.5rem;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: none;
    color: var(--color-variant);
}

.menu-table {
    width: 100%;
    margin-top: 15px;
}

/* Taxes included text at bottom */
.post .text-center {
    margin-top: 50px;
    margin-bottom: 120px;
    padding-bottom: 20px;
}

@media (max-width: 684px) {
    .menu-category {
        scroll-margin-top: 120px;
    }

    .post .text-center {
        margin-bottom: 100px;
    }
}

/* Contact Info */
.contact-info {
    background-color: var(--background-secondary);
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.contact-info p {
    margin: 10px 0;
}

.contact-info a {
    text-decoration: none;
    color: var(--color);
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Reserve Button */
.reserve-button {
    background-color: #555555;
    border-radius: 8px;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    transition-duration: 0.4s;
    margin-top: 10px;
    margin-bottom: 30px;
    margin-right: 10px;
    margin-left: 10px;
}

.reserve-button:hover {
    background-color: #f0703e;
    box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
    cursor: pointer;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        padding: 0 15px;
    }
}

/* Social Icons and Contact */
.location {
    display: block;
    margin: 30px 0;
    padding: 15px;
    background-color: transparent;
    border-radius: 4px;
    text-decoration: none;
    color: var(--color);
    transition: all 0.2s ease;
    text-align: center;
    font-size: 11px;
}

.location:hover {
    background-color: transparent;
    text-decoration: none;
    color: var(--color-variant);
    text-shadow: 0 0 10px var(--color-variant);
}

.social-icons {
    display: flex;
    gap: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.social-icons a[href*="whatsapp"],
.social-icons a[href*="wa.me"],
.social-icons a[href*="tel"],
.social-icons a[href*="instagram"],
.social-icons a[href*="mailto"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 4px;
    color: var(--color);
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.social-icons a[href*="whatsapp"]:hover,
.social-icons a[href*="wa.me"]:hover,
.social-icons a[href*="tel"]:hover,
.social-icons a[href*="instagram"]:hover,
.social-icons a[href*="mailto"]:hover {
    transform: scale(1.2);
    color: var(--color-variant);
}

.social-icons a svg {
    width: 100%;
    height: 100%;
    display: block;
    max-width: 28px;
    max-height: 28px;
}

.social-icons a:hover svg {
    fill: var(--color-variant);
    stroke: var(--color-variant);
}

@media (max-width: 684px) {
    .container {
        padding: 0 5px;
    }

    body {
        padding: 0;
    }

    .post {
        padding: 10px 5px;
    }

    .content {
        padding-bottom: 100px;
    }

    .location {
        font-size: 14px;
        margin: 20px 10px;
        padding: 10px;
        line-height: 1.5;
    }

    .social-icons a[href*="whatsapp"],
    .social-icons a[href*="wa.me"],
    .social-icons a[href*="tel"],
    .social-icons a[href*="instagram"],
    .social-icons a[href*="mailto"] {
        width: 36px;
        height: 36px;
    }

    .social-icons a svg {
        max-width: 36px;
        max-height: 36px;
    }
}