/* Mahara Cafe - QR Menü */
* { margin: 0; padding: 0; box-sizing: border-box; }

body.menu-page {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding-bottom: 0;
}

.menu-container { max-width: 1200px; margin: 0 auto; padding: 16px; }

/* Header */
.menu-header {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.menu-logo {
    max-width: 120px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.menu-subtitle {
    color: #6c757d;
    font-size: 14px;
    margin-top: 12px;
    font-weight: 500;
}

/* Kategoriler */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:active { transform: scale(0.98); }

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.category-name {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: #1a1a1a;
    line-height: 1.3;
}

/* Ürünler */
.products-section { display: none; }
.products-section.active { display: block; }

.back-button {
    background: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 15px;
    color: #1a1a1a;
    cursor: pointer;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-weight: 500;
}

.back-button:hover {
    transform: translateX(-3px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.category-title {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.5px;
}

.products-list { display: flex; flex-direction: column; gap: 12px; }

.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: all 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.product-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ecb881 0%, #d4a574 100%);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.product-description {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #d4a574;
    margin-top: 4px;
}

/* WiFi Button */
.wifi-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ecb881 0%, #d4a574 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 1000;
    border: none;
    animation: pulse-glow 2s ease-in-out infinite;
}

.wifi-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(212, 165, 116, 0.5);
    animation: none;
}

.wifi-button .material-symbols-outlined { 
    font-size: 24px; 
    color: #fff;
    animation: wifi-pulse 2s ease-in-out infinite;
}

.wifi-button:hover .material-symbols-outlined {
    animation: none;
}

/* Parlama Animasyonları */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(212, 165, 116, 0.8), 0 0 30px rgba(212, 165, 116, 0.4);
    }
}

@keyframes wifi-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Bottom Sheet */
.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 24px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    max-height: 70vh;
    overflow-y: auto;
}

.bottom-sheet.active { bottom: 0; }

.bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.bottom-sheet-overlay.active { opacity: 1; visibility: visible; }

.bottom-sheet-header { text-align: center; margin-bottom: 16px; }

.bottom-sheet-handle {
    width: 36px;
    height: 4px;
    background: #dee2e6;
    border-radius: 2px;
    margin: 0 auto 16px;
}

.bottom-sheet h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bottom-sheet h3 .material-symbols-outlined {
    font-size: 24px;
    color: #d4a574;
}

.wifi-info {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    margin-top: 12px;
}

.wifi-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.wifi-info-item:last-child { border-bottom: none; }

.wifi-label { font-weight: 600; color: #495057; font-size: 14px; }
.wifi-value { color: #d4a574; font-weight: 600; font-size: 14px; }

.close-sheet {
    background: linear-gradient(135deg, #ecb881 0%, #d4a574 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 16px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
}

.close-sheet:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
}

/* Password Modal */
.password-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.password-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 2001;
    max-width: 400px;
    width: calc(100% - 32px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.password-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.password-modal-content {
    text-align: center;
}

.password-modal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ecb881 0%, #d4a574 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.password-modal-icon .material-symbols-outlined {
    font-size: 32px;
    color: #fff;
}

.password-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.password-modal-text {
    font-size: 15px;
    color: #6c757d;
    margin-bottom: 24px;
    line-height: 1.5;
}

.password-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.2s;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 2px;
}

.password-input:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.1);
}

.password-input::placeholder {
    letter-spacing: normal;
    color: #adb5bd;
}

.password-modal-buttons {
    display: flex;
    gap: 12px;
}

.password-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Open Sans', sans-serif;
}

.password-btn-cancel {
    background: #f8f9fa;
    color: #6c757d;
}

.password-btn-cancel:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.password-btn-submit {
    background: linear-gradient(135deg, #ecb881 0%, #d4a574 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
}

.password-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
}

.password-btn-submit:active,
.password-btn-cancel:active {
    transform: translateY(0);
}

/* Shake animation for wrong password */
@keyframes shake {
    0%, 100% { transform: translate(-50%, -50%) translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translate(-50%, -50%) translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translate(-50%, -50%) translateX(10px); }
}

.password-modal.shake {
    animation: shake 0.5s;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-header h1 { font-size: 24px; }
    .category-name { font-size: 12px; padding: 10px; }
    .product-card { padding: 10px; }
    .product-image { width: 65px; height: 65px; }
    .product-name { font-size: 14px; }
    .product-description { font-size: 11px; }
    .product-price { font-size: 15px; }
}

@media (max-width: 480px) {
    .menu-container { padding: 12px; }
    .categories-grid { gap: 10px; }
    .category-image { height: 132px; }
    .wifi-button { width: 50px; height: 50px; bottom: 16px; right: 16px; }
    .wifi-button i { font-size: 20px; }
}

/* ========== CHATBOT ========== */
.chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ecb881 0%, #d4a574 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1000;
    border: 3px solid #fff;
    animation: chatbot-pulse 2s ease-in-out infinite;
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.6);
    animation: none;
}

.chatbot-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
}

@keyframes chatbot-pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(212, 165, 116, 0.5); }
    50% { box-shadow: 0 4px 25px rgba(212, 165, 116, 0.8), 0 0 40px rgba(212, 165, 116, 0.3); }
}

/* Chatbot Overlay */
.chatbot-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1001;
}
.chatbot-overlay.active { opacity: 1; visibility: visible; }

/* Chatbot Window */
.chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 340px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Chatbot Header */
.chatbot-header {
    background: linear-gradient(135deg, #ecb881 0%, #d4a574 100%);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-header-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    object-fit: contain;
}

.chatbot-header-info { flex: 1; }
.chatbot-name { display: block; font-weight: 700; color: #fff; font-size: 16px; }
.chatbot-status { display: block; font-size: 12px; color: rgba(255,255,255,0.85); margin-top: 2px; }

.chatbot-close {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.chatbot-close:hover { background: rgba(255,255,255,0.3); }

/* Chatbot Messages */
.chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 150px;
    max-height: 250px;
    background: #f8f9fa;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    animation: messageIn 0.3s ease-out;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    background: #fff;
    color: #1a1a1a;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.user-message {
    background: linear-gradient(135deg, #ecb881 0%, #d4a574 100%);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Chatbot Options */
.chatbot-options {
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border-top: 1px solid #e9ecef;
}

.chat-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
}

.chat-option:hover {
    background: #fff;
    border-color: #d4a574;
    transform: translateX(4px);
}

.chat-option:active { transform: translateX(2px); }

.recommendation-btn {
    background: linear-gradient(135deg, #ecb881 0%, #d4a574 100%);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

.recommendation-btn:hover {
    background: linear-gradient(135deg, #d4a574 0%, #c49464 100%);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chatbot-button { width: 54px; height: 54px; bottom: 16px; right: 16px; }
    .chatbot-logo { width: 36px; height: 36px; }
    .chatbot-window { bottom: 80px; right: 10px; left: 10px; width: auto; max-width: none; }
}

/* ========== MENU FOOTER ========== */
.menu-footer {
    background: #1a1a1a;
    padding: 20px 16px 16px;
    margin-top: 0;
    text-align: center;
}

.menu-footer-inner {
    max-width: 600px;
    margin: 0 auto;
}

.menu-footer-logo {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
    opacity: 0.9;
}

.menu-footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.menu-footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.menu-footer-links a:hover { color: #d4a574; }

.menu-footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.menu-footer-social a {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    transition: all 0.2s;
    text-decoration: none;
}

.menu-footer-social a:hover {
    background: #d4a574;
    color: #fff;
}

.menu-footer-copy {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    margin: 0;
}

@media (max-width: 480px) {
    .menu-footer { padding: 16px 12px 12px; }
    .menu-footer-logo { width: 50px; margin-bottom: 8px; }
    .menu-footer-links { gap: 14px; margin-bottom: 8px; }
    .menu-footer-links a { font-size: 12px; }
    .menu-footer-social { gap: 10px; margin-bottom: 8px; }
    .menu-footer-social a { width: 30px; height: 30px; font-size: 13px; }
    .menu-footer-copy { font-size: 10px; }
}