/* QR Menu - Menu Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #654321;
    --accent-color: #A0522D;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #faf8f5;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(139, 69, 19, 0.15);
    --shadow-hover: 0 8px 25px rgba(139, 69, 19, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Menu Header */
.menu-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 60px 0;
    color: var(--white);
}

.menu-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.65), rgba(101, 67, 33, 0.55));
    z-index: 1;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.menu-header .container {
    position: relative;
    z-index: 3;
}

.header-content {
    text-align: center;
    margin-bottom: 30px;
}

.restaurant-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.restaurant-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.restaurant-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.restaurant-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Category Badge */
.category-badge-wrapper {
    margin-top: 15px;
    text-align: center;
}

.category-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Header Actions */
.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.back-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.language-select {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    min-width: 140px;
}

.language-select:hover,
.language-select:focus {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.language-select option {
    background: var(--white);
    color: var(--text-dark);
    padding: 10px;
}

/* Menu Content */
.menu-content {
    flex: 1;
    padding: 40px 0;
}

.menu-section {
    margin-bottom: 50px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
    cursor: pointer;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
}

/* Category Header Single (for category.php) */
.category-header-single {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.category-header-single::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
}

.category-header-single .category-title {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
}

.category-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    outline: none;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.category-toggle:hover {
    transform: scale(1.1);
}

.toggle-icon {
    width: 20px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Collapsed (default) - horizontal lines (☰) */
.category-toggle.collapsed .toggle-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow:
        0 -7px 0 var(--primary-color),
        0 7px 0 var(--primary-color);
}

/* Open - vertical lines (|||) */
.category-toggle:not(.collapsed) .toggle-icon::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow:
        -7px 0 0 var(--primary-color),
        7px 0 0 var(--primary-color);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    max-height: 10000px;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 1;
}

.products-grid.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
    flex: 1;
}

.product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.product-price .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price .separator {
    color: var(--text-light);
    font-weight: 300;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
}

.empty-state h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--white);
    padding: 20px 0;
    text-align: center;
    color: var(--text-light);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* Footer Partner Link */
.footer a.footer-partner {
    color: var(--primary-color);      /* Site ana rengi */
    text-decoration: none;            /* Alt çizgiyi kaldır */
    font-weight: 600;                 /* Koyu / premium duruş */
    transition: var(--transition);
}

.footer a.footer-partner:hover {
    color: var(--accent-color);       /* Hover’da accent */
    text-decoration: none;
}


/* Responsive Design */
@media (max-width: 768px) {
    .menu-header {
        padding: 40px 0;
    }

    .restaurant-logo {
        width: 120px;
        height: 120px;
    }

    .restaurant-title {
        font-size: 2rem;
    }

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

    .header-actions {
        justify-content: center;
    }

    .category-title {
        font-size: 1.6rem;
    }

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

    .product-card {
        display: flex;
        flex-direction: row;
        height: auto;
    }

    .product-image {
        width: 150px;
        height: 150px;
        flex-shrink: 0;
    }

    .product-name {
        font-size: 1.1rem;
    }

    .product-desc {
        font-size: 0.85rem;
    }

    .product-price .price {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .restaurant-title {
        font-size: 1.6rem;
    }

    .restaurant-subtitle {
        font-size: 0.9rem;
    }

    .category-title {
        font-size: 1.4rem;
    }

    .product-card {
        flex-direction: column;
    }

    .product-image {
        width: 100%;
        height: 180px;
    }

    .back-btn,
    .lang-btn {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
}
