/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Mode Colors */
    --primary-color: #e74c3c;
    --primary-dark: #c0392b;
    --secondary-color: #f39c12;
    --accent-color: #3498db;
    --bg-color: #ffffff;
    --surface-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #95a5a6;
    --border-color: #ecf0f1;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

[data-theme="dark"] {
    /* Dark Mode Colors */
    --bg-color: #1a1a1a;
    --surface-color: #2d2d30;
    --card-bg: #3c3c3c;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-light: #888888;
    --border-color: #404040;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.4);
    --gradient-bg: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --gradient-card: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-hover);
    max-width: 400px;
    width: 90%;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h3 {
    margin-bottom: 30px;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
}


/* Header Styles */
.header {
    background: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.header.hidden {
    transform: translateY(-100%);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-card);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.dark-mode-toggle {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}


/* Main Content */
.main {
    padding: 40px 0;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Hero with Banner Background */
.hero.has-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 20px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-hover);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero.has-banner .hero-content h2 {
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero.has-banner .main-logo {
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4));
}

.hero-logo {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo {
    max-width: 300px;
    max-height: 200px;
    width: auto;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    transition: all 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    background: var(--gradient-card);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Categories */
.categories {
    margin-bottom: 50px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-card);
}

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

.category-image {
    height: 200px;
    background: var(--gradient-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.category-content {
    padding: 25px;
    text-align: center;
}

.category-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.category-content p {
    color: var(--text-secondary);
    font-size: 14px;
}


/* Menu Items */
.popular-items,
.recommended-items,
.menu-section {
    margin: 50px 0;
}

.popular-items h3,
.recommended-items h3,
.menu-section h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.menu-item {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid var(--primary-color);
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--primary-dark);
}

.menu-item-image {
    width: 100%;
    height: 160px;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item-content {
    padding: 25px;
}

.menu-item-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.menu-item-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.menu-item-price {
    display: flex;
    justify-content: center;
    align-items: center;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Category Header */
.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.back-btn {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* News Section */
.news-section {
    margin: 50px 0;
}

.news-section h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.news-item {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

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

.news-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Feedback Section */
.feedback-section {
    text-align: center;
    margin: 50px 0;
    padding: 40px;
    background: var(--surface-color);
    border-radius: 20px;
}

.feedback-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 25px;
}

.feedback-btn {
    background: var(--gradient-card);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.feedback-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Footer */
.footer {
    background: var(--card-bg);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

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

.social-links {
    margin-bottom: 25px;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
}

.instagram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
    color: white;
    text-decoration: none;
}

.instagram-link i {
    font-size: 20px;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.copyright p {
    color: var(--text-light);
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-controls {
        justify-content: center;
    }
    
    /* Mobilde kategori menüsünde header'ı gizle */
    .menu-section.active .header {
        position: fixed;
        top: -100%;
        transition: top 0.3s ease;
    }
    
    /* Kategori menüsü aktifken header'ı tamamen gizle */
    body.category-view .header {
        transform: translateY(-100%);
    }
    
    /* Kategori menüsünde üst boşluk ekle */
    body.category-view .main {
        padding-top: 20px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .menu-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-item-image {
        height: 150px;
    }
    
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .promotion-card {
        padding: 30px 20px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .main-logo {
        max-width: 200px;
        max-height: 150px;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .category-grid {
        gap: 10px;
    }
    
    .category-image {
        height: 150px;
    }
    
    .category-content {
        padding: 15px;
    }
    
    .category-content h3 {
        font-size: 16px;
    }
    
    .category-content p {
        font-size: 12px;
    }
    
    .popular-items h3,
    .recommended-items h3,
    .menu-section h3,
    .news-section h3 {
        font-size: 22px;
    }
    
    .menu-item-content {
        padding: 15px;
    }
    
    .menu-item-image {
        height: 130px;
    }
    
    .news-item {
        padding: 20px;
    }
    
    .feedback-section {
        padding: 30px 20px;
    }
    
    .instagram-link {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .instagram-link i {
        font-size: 18px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* ============================================
   BAKIM MODU STİLLERİ
   ============================================ */

.maintenance-notice {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 50px 40px;
    text-align: center;
    margin: 40px auto;
    max-width: 700px;
    box-shadow: var(--shadow-hover);
    animation: slideIn 0.6s ease-out;
    border: 3px solid var(--border-color);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.maintenance-icon {
    margin-bottom: 25px;
}

.maintenance-icon i {
    font-size: 80px;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-15px); 
    }
}

.maintenance-notice h3 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.maintenance-notice > p {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.maintenance-spinner {
    margin: 35px auto;
}

.maintenance-spinner .spinner {
    margin: 0 auto;
    width: 60px;
    height: 60px;
    border: 6px solid var(--border-color);
    border-top: 6px solid var(--primary-color);
    border-right: 6px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.maintenance-contact {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.maintenance-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 12px 20px;
    background: var(--surface-color);
    border-radius: 12px;
}

.maintenance-contact .contact-item:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.maintenance-contact .contact-item i {
    font-size: 20px;
    color: var(--primary-color);
}

.maintenance-footer {
    margin-top: 30px;
    color: var(--text-light);
    font-size: 15px;
    font-style: italic;
}

.maintenance-footer i {
    color: var(--secondary-color);
    margin-right: 8px;
}

/* Responsive Bakım Modu */
@media (max-width: 768px) {
    .maintenance-notice {
        padding: 40px 25px;
        margin: 20px 15px;
    }
    
    .maintenance-notice h3 {
        font-size: 24px;
    }
    
    .maintenance-notice > p {
        font-size: 16px;
    }
    
    .maintenance-icon i {
        font-size: 60px;
    }
    
    .maintenance-contact {
        flex-direction: column;
        gap: 15px;
    }
    
    .maintenance-contact .contact-item {
        width: 100%;
        justify-content: center;
    }
    
    /* Banner Responsive */
    .hero.has-banner {
        padding: 40px 15px;
        min-height: 280px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .main-logo {
        max-width: 200px;
        max-height: 150px;
    }
}

/* ============================================
   BİZE YAZIN BUTONU ve MODAL
   ============================================ */

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

.contact-us-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
}

.contact-us-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.4);
}

.contact-us-btn i {
    font-size: 20px;
}

/* Modal Stilleri */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.contact-modal.active {
    display: flex;
}

.contact-modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid var(--border-color);
}

.contact-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
}

.contact-modal-header h3 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.contact-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-modal-close:hover {
    background: var(--surface-color);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.contact-modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.form-group label i {
    color: var(--primary-color);
    margin-right: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-color);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn-cancel,
.btn-submit {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: var(--surface-color);
    color: var(--text-secondary);
}

.btn-cancel:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-submit i {
    margin-right: 8px;
}

/* Adres Bilgisi */
.address-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--surface-color);
    padding: 20px 25px;
    border-radius: 15px;
    margin: 25px auto;
    max-width: 600px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.address-info:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.address-info i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 2px;
}

.address-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .address-info {
        padding: 15px 20px;
        margin: 20px 15px;
    }
    
    .address-info i {
        font-size: 20px;
    }
    
    .address-info p {
        font-size: 14px;
    }
    
    .contact-us-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .contact-modal-content {
        margin: 20px;
    }
    
    .contact-modal-header {
        padding: 20px;
    }
    
    .contact-modal-header h3 {
        font-size: 20px;
    }
    
    .contact-modal-body {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}