/* QR Menu - Frontend 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 10px 40px rgba(139, 69, 19, 0.15);
    --shadow-hover: 0 20px 60px 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;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: var(--white);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    max-height: 50px;
    max-width: 180px;
    height: auto;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .header-logo img {
        max-height: 65px;
        max-width: 220px;
    }
}

@media (min-width: 1200px) {
    .header-logo img {
        max-height: 80px;
        max-width: 280px;
    }
}

.header-logo h1 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 10px;
}

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

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

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

/* Main Content */
.main-content {
    flex: 1;
    padding: 0;
}

.restaurants-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Restaurant Card Link */
.restaurant-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Restaurant Card */
.restaurant-card {
    height: 200px;
    margin-bottom: 0;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

/* Fallback - if JavaScript doesn't load, show restaurants */
@media (prefers-reduced-motion: reduce) {
    .restaurant-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.restaurant-card:hover {
    box-shadow: inset 0 0 0 4px rgba(139, 69, 19, 0.5);
}

.restaurant-card:hover .restaurant-logo {
    transform: scale(1.1);
}

.restaurant-card:hover .favorite-product {
    transform: scale(1.15) rotate(5deg);
}

.restaurant-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.restaurant-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.restaurant-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 100px;
    gap: 30px;
}

.favorite-product {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.favorite-product img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
    border-radius: 12px;
}

.restaurant-logo {
    width: 280px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.restaurant-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.restaurant-info {
    flex: 1;
}

.restaurant-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.restaurant-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.5;
}

.view-menu-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.view-menu-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

/* 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) {
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .header-logo img {
        max-height: 40px;
        max-width: 150px;
    }

    .header-logo h1 {
        font-size: 1.3rem;
    }

    .language-select {
        min-width: 60px;
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .restaurant-card {
        height: auto;
        min-height: 180px;
    }

    .restaurant-content {
        padding: 15px 40px;
        gap: 15px;
    }

    .restaurant-logo {
        width: 180px;
        height: 110px;
    }

    .favorite-product {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .header-logo img {
        max-height: 35px;
        max-width: 120px;
    }

    .header-logo h1 {
        font-size: 1.1rem;
    }

    .language-select {
        min-width: 50px;
        padding: 5px 8px;
        font-size: 0.8rem;
    }

    .restaurant-content {
        padding: 10px 30px;
        gap: 10px;
    }

    .restaurant-logo {
        width: 140px;
        height: 90px;
    }

    .favorite-product {
        width: 70px;
        height: 70px;
    }
}
