/* ===== VARIABLES & RESET ===== */
:root {
    --primary-color: #d4af37;
    --primary-dark: #b8942a;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    }
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: visible;
    animation: fadeInDown 0.8s ease;
}

.language-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    z-index: 501;
    animation: bounce-in 0.8s ease;
    border: none;
    padding: 0;
    line-height: 1;
    font-weight: 700;
}

.language-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.5);
}

.language-toggle:active {
    transform: scale(0.95);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(212,175,55,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(212,175,55,0.1)"/><circle cx="80" cy="20" r="2" fill="rgba(212,175,55,0.1)"/><circle cx="20" cy="80" r="2" fill="rgba(212,175,55,0.1)"/></svg>');
    opacity: 0.3;
}

/* ===== LANGUAGE MODAL ===== */
.language-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.language-modal.active {
    opacity: 1;
    visibility: visible;
}

.language-modal-content {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: bounce-in 0.5s ease;
    max-width: 450px;
    width: 90%;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    margin: 0;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 50%;
}

.modal-close:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: rotate(90deg);
}

.language-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    padding: 25px;
}

.lang-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border: 2px solid #f0f0f0;
    background: var(--bg-light);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-dark);
}

.lang-option img {
    width: 48px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    transition: var(--transition);
}

.flag-emoji {
    font-size: 32px;
    line-height: 1;
    display: block;
    transition: var(--transition);
}

.lang-option:hover {
    border-color: var(--primary-color);
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.2);
}

.lang-option:hover .flag-emoji {
    transform: scale(1.15);
}

.lang-option:active {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 48px;
    color: var(--primary-color);
    animation: bounce-in 0.8s ease;
}

.header h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInLeft 0.8s ease;
}

.tagline {
    font-size: 18px;
    color: var(--primary-color);
    font-style: italic;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* ===== GOOGLE TRANSLATE WIDGET ===== */
#google_translate_element {
    display: none !important;
}

.goog-te-banner {
    display: none !important;
}

.goog-te-combo {
    display: none !important;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ===== FILTER SECTION ===== */
.filter-section {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease;
}

.filter-section h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    width: 100%;
}

.filter-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: slideInLeft 0.8s ease;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.filter-btn {
    padding: 12px 20px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--text-dark);
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    animation: fadeInUp 0.6s ease;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.3);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--text-dark);
    box-shadow: var(--shadow-hover);
    animation: pulse 0.5s ease;
}

.filter-btn i {
    font-size: 16px;
}

/* ===== MENU GRID ===== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.menu-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease;
    display: none;
}

.menu-item.fade-in {
    display: block;
    animation: fadeInUp 0.6s ease;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }
.menu-item:nth-child(5) { animation-delay: 0.5s; }

.menu-item.appetizers { display: block; }

/* ===== ITEM IMAGE ===== */
.item-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.menu-item:hover .item-image img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(0.9);
}

.category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
    animation: bounce-in 0.6s ease;
}

/* ===== ITEM CONTENT ===== */
.item-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.item-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    transition: var(--transition);
}

.menu-item:hover .item-title {
    color: var(--primary-color);
}

.item-description {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
    flex-grow: 1;
    line-height: 1.5;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.like-btn {
    cursor: pointer;
    font-size: 18px;
    color: #ccc;
    transition: var(--transition);
    animation: rotate 0.3s ease;
}

.like-btn:hover {
    color: #ff6b6b;
    transform: scale(1.3);
}

.like-btn.liked {
    color: #ff6b6b;
    animation: pulse 0.4s ease;
}

/* ===== MENU ITEM HOVER EFFECT ===== */
.menu-item {
    cursor: pointer;
}

.menu-item:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
}

.menu-item:active {
    transform: translateY(-8px);
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 999;
    animation: bounce-in 0.8s ease 0.5s both;
    overflow: hidden;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.whatsapp-btn:hover::before {
    width: 300px;
    height: 300px;
}

.whatsapp-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn span {
    display: none;
    font-size: 14px;
    font-weight: 700;
}

.whatsapp-btn i {
    position: relative;
    z-index: 1;
}

@media (hover: none) {
    .whatsapp-btn span {
        display: inline;
        margin-left: 8px;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 50px 20px 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 13px;
}

.footer-section {
    animation: fadeInUp 0.8s ease;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header h1 {
        font-size: 32px;
    }

    .tagline {
        font-size: 14px;
    }

    .logo-icon {
        font-size: 36px;
    }

    .language-toggle {
        width: 36px;
        height: 36px;
        font-size: 16px;
        top: 15px;
        right: 15px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .language-options {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 12px;
        padding: 20px;
    }

    .container {
        padding: 40px 15px;
    }

    .filter-section h2 {
        font-size: 28px;
    }

    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 12px;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .item-image {
        height: 180px;
    }

    .item-title {
        font-size: 16px;
    }

    .item-description {
        font-size: 12px;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 15px;
    }

    .header h1 {
        font-size: 24px;
    }

    .logo-section {
        gap: 10px;
    }

    .logo-icon {
        font-size: 28px;
    }

    .language-toggle {
        width: 36px;
        height: 36px;
        font-size: 16px;
        top: 12px;
        right: 12px;
    }

    .filter-section h2 {
        font-size: 22px;
    }

    .language-modal-content {
        width: 95%;
    }

    .modal-header {
        padding: 18px;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .language-options {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
        padding: 15px;
    }

    .lang-option {
        padding: 10px 5px;
        font-size: 11px;
        gap: 6px;
    }

    .lang-option img {
        width: 40px;
        height: 30px;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .item-image {
        height: 200px;
    }

    .item-content {
        padding: 15px;
    }

    .item-title {
        font-size: 15px;
    }

    .price {
        font-size: 18px;
    }

    .translate-widget {
        top: 10px;
        right: 10px;
        font-size: 12px;
    }

    .whatsapp-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===== LOADING STATE ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #f0f0f0;
        --text-light: #aaa;
        --bg-light: #1a1a1a;
        --white: #282828;
    }

    body {
        background-color: #0f0f0f;
    }

    .menu-item {
        background: #282828;
        border: 1px solid #444;
    }

    .translate-widget {
        background: #282828;
        color: #f0f0f0;
    }
}

/* ===== ACTIVE FILTER ANIMATION ===== */
.menu-item.appetizers,
.menu-item.soups,
.menu-item.mains,
.menu-item.seafood,
.menu-item.sides,
.menu-item.desserts,
.menu-item.drinks {
    display: block;
}

/* ===== PRINT STYLES ===== */
@media print {
    .filter-buttons,
    .whatsapp-btn,
    .translate-widget {
        display: none;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== ACCESSIBILITY ===== */
.filter-btn:focus,
.like-btn:focus,
.whatsapp-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== SMOOTH TRANSITIONS ===== */
button {
    font-family: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== UTILITY ANIMATIONS ===== */
.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* ===== HOVER EFFECTS FOR CARDS ===== */
.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item {
    position: relative;
}
