@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* =====================================================
   RUZAN KAFE - Dijital Menü Stil Dosyası
   Referans: kebapcimhataysofrasi.dijital.menu tasarımı
   ===================================================== */

/* ---- CSS Variables ---- */
:root {
    --bg-color: #fef7f0;
    --text-color: #434A4F;
    --heading-color: #6b2f1a;
    --accent-color: #a0522d;
    --accent-dark: #7a3b1e;
    --accent-light: #d4956a;
    --modal-header-bg: #5c2d0e;
    --modal-header-color: #fff7ed;
    --modal-btn-bg: #7a3b1e;
    --modal-btn-color: #fff7ed;
    --tag-color: #e84393;
    --gradient-dark: #3e1a0a;
    --text-shadow: 1px 1px 20px rgba(62, 26, 10, 0.9), 1px 1px 30px rgba(62, 26, 10, 0.9);
    --sticky-header-bg: rgba(92, 45, 14, 0.85);
    --shadow-glass: rgba(0, 0, 0, 0.3);
    --card-bg: #ffffff;
    --border-color: rgba(160, 82, 45, 0.15);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --rounded-sm: 8px;
    --rounded-md: 12px;
    --rounded-lg: 16px;
    --rounded-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ---- Sticky Header ---- */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--sticky-header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.sticky-header.visible {
    transform: translateY(0);
}

.sticky-header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.sticky-header__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02rem;
}

.sticky-header__title a {
    color: #fff;
}

.sticky-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rounded-full);
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.btn-search-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    width: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px 40px;
    background: linear-gradient(135deg, #5c2d0e 0%, #a0522d 50%, #d4956a 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero__logo {
    width: auto;
    max-width: 420px;
    max-height: 200px;
    border-radius: var(--rounded-sm);
    object-fit: contain;
    border: none;
    box-shadow: none;
    transition: var(--transition);
    background: transparent;
}

.hero__logo:hover {
    transform: scale(1.05);
}

.hero__name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: var(--text-shadow);
    letter-spacing: -0.02rem;
    margin-bottom: 4px;
}

.hero__tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

.hero__actions {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

/* ---- Floating Particles (decorative) ---- */
.hero__particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__particles span {
    position: absolute;
    display: block;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-particle 15s infinite;
}

.hero__particles span:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 20s; }
.hero__particles span:nth-child(2) { left: 25%; animation-delay: 2s; animation-duration: 15s; width: 4px; height: 4px; }
.hero__particles span:nth-child(3) { left: 40%; animation-delay: 4s; animation-duration: 18s; }
.hero__particles span:nth-child(4) { left: 55%; animation-delay: 1s; animation-duration: 22s; width: 8px; height: 8px; }
.hero__particles span:nth-child(5) { left: 70%; animation-delay: 3s; animation-duration: 17s; }
.hero__particles span:nth-child(6) { left: 85%; animation-delay: 5s; animation-duration: 20s; width: 3px; height: 3px; }

@keyframes float-particle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* ---- Section Titles ---- */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--heading-color);
    padding: 24px 20px 16px;
    max-width: 900px;
    margin: 0 auto;
    letter-spacing: -0.02rem;
}

/* ---- Favorites / Top Chart ---- */
.favorites-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0 10px;
}

.top-chart-wrapper {
    position: relative;
    padding: 0 20px;
}

.top-chart {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 16px;
}

.top-chart::-webkit-scrollbar {
    display: none;
}

.chart-item {
    flex: 0 0 155px;
    height: 180px;
    border-radius: var(--rounded-md);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.chart-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.chart-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
}

.chart-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 12px;
    z-index: 1;
}

.chart-item-content h4 {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.01rem;
}

.top-chart-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: var(--rounded-full);
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--heading-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.top-chart-nav:hover {
    background: var(--heading-color);
    color: #fff;
}

.top-chart-nav--prev { left: 4px; }
.top-chart-nav--next { right: 4px; }
.top-chart-nav.hidden { display: none; }

/* ---- Category Grid ---- */
.categories-section {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 30px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 0 20px;
}

.menu-grid-item {
    position: relative;
    border-radius: var(--rounded-md);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 170px;
}

.menu-grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Her 5. öğe tam genişlik (otomatik pattern) */
.menu-grid-item:nth-child(5n+1):first-child,
.menu-grid-item:nth-child(5n+3) {
    min-height: 170px;
}

.menu-grid-item:nth-child(5n+1) {
    grid-column: span 2;
    min-height: 200px;
}

.menu-grid-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    transition: var(--transition);
}

.menu-grid-item:hover .overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.menu-grid-item .text-box {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 16px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02rem;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.7);
    z-index: 2;
}

/* ---- Category Detail Page (Hero Banner) ---- */
.category-hero {
    position: relative;
    width: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 40px 20px;
}

.category-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

.category-hero__content {
    position: relative;
    z-index: 2;
}

.category-hero__logo {
    width: auto;
    max-width: 140px;
    max-height: 70px;
    border-radius: var(--rounded-sm);
    object-fit: contain;
    margin-bottom: 16px;
    border: none;
}

.category-hero__site-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
}

.category-hero__title {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    text-shadow: var(--text-shadow);
    letter-spacing: 0.02rem;
    margin-bottom: 20px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: var(--rounded-full);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.btn-back:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.8);
    transform: scale(1.03);
}

/* ---- Product List (Category Page) ---- */
.products-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.category-notice {
    text-align: center;
    font-size: 0.85rem;
    color: var(--accent-color);
    padding: 16px 20px;
    font-weight: 500;
    line-height: 1.5;
}

.subcategory-title {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--heading-color);
    padding: 20px 0 12px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.01rem;
}

.product-list {
    margin-bottom: 24px;
}

/* Product item - list style (like reference) */
.product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
    transition: var(--transition);
}

.product-item:last-child {
    border-bottom: none;
}

.product-item:hover {
    background: rgba(160, 82, 45, 0.03);
    padding-left: 8px;
    padding-right: 8px;
    border-radius: var(--rounded-sm);
}

.product-item__info {
    flex: 1;
    min-width: 0;
}

.product-item__name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.4;
}

.product-item__desc {
    font-size: 0.8rem;
    color: #999;
    margin-top: 2px;
    line-height: 1.3;
}

.product-item__price {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading-color);
    white-space: nowrap;
    margin-left: 16px;
}

/* Product item with image */
.product-item--has-image {
    gap: 14px;
}

.product-item__image {
    width: 70px;
    height: 70px;
    border-radius: var(--rounded-sm);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Featured product cards */
.product-featured {
    background: var(--card-bg);
    border-radius: var(--rounded-md);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.product-featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.product-featured__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-featured__content {
    padding: 16px;
}

.product-featured__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 4px;
}

.product-featured__desc {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.4;
    margin-bottom: 8px;
}

.product-featured__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* ---- Search Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2001;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
}

.modal.active {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--modal-header-bg);
    color: var(--modal-header-color);
    min-height: 56px;
}

.modal-header .title {
    font-size: 1rem;
    font-weight: 600;
}

.modal-header .btn-close {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--modal-header-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: var(--rounded-sm);
    transition: var(--transition);
}

.modal-header .btn-close:hover {
    background: rgba(255,255,255,0.1);
}

.search-bar {
    display: flex;
    align-items: center;
    flex: 1;
}

.search-bar input {
    width: 100%;
    padding: 10px 16px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: var(--rounded-sm);
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-primary);
    outline: none;
}

.search-bar input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-result-item:hover {
    background: rgba(160, 82, 45, 0.05);
}

.search-result-item__name {
    font-weight: 500;
    font-size: 0.95rem;
}

.search-result-item__category {
    font-size: 0.75rem;
    color: #999;
    margin-top: 2px;
}

.search-result-item__price {
    font-weight: 700;
    color: var(--heading-color);
    white-space: nowrap;
}

.search-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 0.9rem;
}

/* ---- Footer ---- */
footer {
    background: linear-gradient(135deg, rgba(92,45,14,0.05) 0%, rgba(160,82,45,0.08) 100%);
    padding: 30px 20px 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.social-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-footer-item {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rounded-full);
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1.3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.social-footer-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.social-footer-item.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.social-footer-item.facebook:hover {
    background: #1877f2;
    color: #fff;
}

.footer-company-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.footer-company-address {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-link {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 20px;
}

.footer-link a {
    color: var(--accent-color);
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--accent-color);
    color: #fff;
    border-radius: var(--rounded-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
    transition: var(--transition);
}

.btn-directions:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* ---- No items ---- */
.no-items {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
}

.no-items i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.menu-grid-item {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.menu-grid-item:nth-child(1) { animation-delay: 0.05s; }
.menu-grid-item:nth-child(2) { animation-delay: 0.1s; }
.menu-grid-item:nth-child(3) { animation-delay: 0.15s; }
.menu-grid-item:nth-child(4) { animation-delay: 0.2s; }
.menu-grid-item:nth-child(5) { animation-delay: 0.25s; }
.menu-grid-item:nth-child(6) { animation-delay: 0.3s; }
.menu-grid-item:nth-child(7) { animation-delay: 0.35s; }
.menu-grid-item:nth-child(8) { animation-delay: 0.4s; }
.menu-grid-item:nth-child(9) { animation-delay: 0.45s; }
.menu-grid-item:nth-child(10) { animation-delay: 0.5s; }
.menu-grid-item:nth-child(11) { animation-delay: 0.55s; }
.menu-grid-item:nth-child(12) { animation-delay: 0.6s; }

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .hero__name { font-size: 1.8rem; }
    .hero__logo { width: 90px; height: 90px; }
    .menu-grid { gap: 10px; padding: 0 14px; }
    .menu-grid-item.style-1,
    .menu-grid-item.style-2,
    .menu-grid-item.style-3 { min-height: 140px; }
    .menu-grid-item.style-4 { min-height: 170px; }
    .category-hero { min-height: 260px; }
    .category-hero__title { font-size: 1.6rem; }
    .section-title { padding: 20px 14px 12px; }
}

@media (min-width: 600px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    html { font-size: 16px; }
    .hero { min-height: 280px; padding: 60px 20px 50px; }
    .hero__logo { width: 130px; height: 130px; }
    .hero__name { font-size: 2.6rem; }
    .menu-grid { gap: 16px; }
}
