/* Reset ve Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #000000 url('images/zenet_background.png') center/cover no-repeat;
    overflow: hidden; /* Sayfa scroll'unu kapat */
    position: relative;
    height: 100vh;
}

/* Background Setup */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('images/zenet_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.75) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: -1;
}

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

/* Header */
.header {
    background: rgba(0, 0, 0, 0);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-content {
    text-align: center;
}

.logo {
    height: 60px;
    width: auto;
    margin-bottom: 8px;
}

.tagline {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    color: #FB0000;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Navigation */
.nav-categories {
    background: rgba(0, 0, 0, 0);
    border-bottom: 2px solid rgba(251, 0, 0, 0.2);
    padding: 15px 0;
    position: fixed;
    top: 98px; /* Header'ın gerçek yüksekliği */
    left: 0;
    right: 0;
    z-index: 99;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    white-space: nowrap;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
    flex-shrink: 0;
}

.category-btn:hover {
    background: rgba(251, 0, 0, 0.2);
    border-color: #FB0000;
    transform: translateY(-1px);
}

.category-btn.active {
    background: linear-gradient(135deg, #FB0000, #d40000);
    border-color: #FB0000;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(251, 0, 0, 0.3);
    transform: translateY(-1px);
}

/* Main Content */
.main {
    padding: 40px 0 80px;
    position: fixed;
    top: 180px; /* Header (98px) + Navigation (50px) + 20px boşluk */
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1;
    scroll-behavior: smooth;
}

.menu-section {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #FB0000;
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-title i {
    font-size: 1.8rem;
}

/* Subcategories */
.subcategory {
    margin-bottom: 40px;
}

.subcategory-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(251, 0, 0, 0.3);
    display: inline-block;
    width: 100%;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Menu Items */
.menu-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(251, 0, 0, 0.3);
}

.menu-item.featured {
    border: 2px solid #FB0000;
    background: rgba(251, 0, 0, 0.05);
}

.menu-item.featured::before {
    content: 'ÖZEL';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FB0000;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.item-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.menu-item:hover .item-image img {
    transform: scale(1.1);
}

.item-content {
    padding: 20px;
}

.item-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.item-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 15px;
}

.item-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FB0000;
    text-align: right;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0);
    
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-text {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.footer-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-section {
    text-align: center;
}

.contact-section h4 {
    color: #FB0000;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.contact-section p {
    margin: 5px 0;
    line-height: 1.4;
}

.contact-section i {
    margin-right: 8px;
    color: #FB0000;
    width: 16px;
}

.contact-section a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-section a:hover {
    color: #FB0000;
}

.developer-credit {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.developer-logo {
    height: 24px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.developer-logo:hover {
    opacity: 1;
}

.developer-credit p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.developer-credit strong {
    color: #FB0000;
    font-weight: 600;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design - Mobile First */

/* Small tablets and large phones */
@media (min-width: 576px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .container {
        padding: 0 30px;
    }
    
    .logo {
        height: 70px;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .nav-categories {
        top: 108px; /* Daha büyük logo için ayarlandı */
    }
    
    .main {
        top: 190px; /* Header (108px) + Navigation (50px) + 20px boşluk */
    }
}

/* Tablets */
@media (min-width: 768px) {
    .header {
        padding: 25px 0;
    }
    
    .logo {
        height: 80px;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .nav-categories {
        top: 138px; /* Header padding 25px + logo 80px + tagline + margin = ~138px */
    }
    
    .main {
        top: 208px; /* Header (138px) + Navigation (50px) + 20px boşluk */
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .subcategory-title {
        font-size: 1.6rem;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .item-name {
        font-size: 1.4rem;
    }
    
    .item-description {
        font-size: 1rem;
    }
    
    .footer-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .main {
        padding: 50px 0 100px;
    }
    
    .section-title {
        font-size: 3rem;
        margin-bottom: 50px;
    }
    
    .subcategory {
        margin-bottom: 50px;
    }
    
    .item-image {
        height: 220px;
    }
    
    .item-content {
        padding: 25px;
    }
    
    .footer-info {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        text-align: left;
    }
    
    .contact-section {
        text-align: left;
    }
    
    .developer-credit {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
    
    .developer-logo {
        height: 28px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .container {
        padding: 0 40px;
    }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
    .menu-item {
        animation: fadeInScale 0.6s ease forwards;
    }
    
    .menu-item:nth-child(even) {
        animation-delay: 0.1s;
    }
    
    .menu-item:nth-child(3n) {
        animation-delay: 0.2s;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus states for better accessibility */
.category-btn:focus {
    outline: 2px solid #FB0000;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .nav-categories,
    .footer {
        display: none;
    }
    
    .background-overlay,
    body::before {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .menu-item {
        background: white;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}