/* style.css - V5 (Fiyatsız & Header Renk Paleti & Admin Panel) */

/* --- 1. TEMEL DEĞİŞKENLER --- */
:root {
    /* Ana Renkler */
    --primary-color: #009688; /* Varsayılan Turkuaz */
    --primary-dark: #00796b;
    --accent-color: #ff9800;  /* Vurgu Rengi */
    --whatsapp-green: #25D366;
    
    /* Arka Plan ve Metin */
    --bg-light: #f0fdfc;
    --bg-white: #ffffff;
    --text-dark: #333333;
    --text-grey: #757575;
    
    /* Düzen */
    --border-radius: 15px;
    --sidebar-width: 280px;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

/* Dark Mode */
body.dark-mode {
    --bg-light: #121212;
    --bg-white: #1e1e1e;
    --text-dark: #e0e0e0;
    --text-grey: #b0b0b0;
    --shadow: 0 4px 15px rgba(0,0,0,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- 2. SIDEBAR (SOL MENÜ) --- */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px 0;
    z-index: 100;
    transition: var(--transition);
    overflow-y: auto;
    scrollbar-width: thin;
}

.brand {
    padding: 0 20px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 10px;
}

.brand i { font-size: 1.8rem; color: #ffd700; }

.menu-list { list-style: none; padding: 0 10px; }
.menu-item { margin-bottom: 5px; }

.menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

.menu-link:hover, .menu-link.active {
    background: rgba(255,255,255,0.15);
    color: white;
    transform: translateX(5px);
}

.menu-link-content { display: flex; align-items: center; gap: 12px; }
.menu-arrow { font-size: 0.8rem; transition: transform 0.3s ease; }

/* Alt Menü (Accordion) */
.submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0,0,0,0.15);
    border-radius: 10px;
    margin-top: 2px;
}

.submenu li a {
    display: block;
    padding: 10px 15px 10px 48px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.submenu li a:hover {
    color: white;
    background: rgba(255,255,255,0.05);
    border-left-color: rgba(255,255,255,0.5);
}

.menu-item.open .submenu { max-height: 600px; }
.menu-item.open .menu-arrow { transform: rotate(90deg); }

/* --- 3. MAIN CONTENT --- */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 25px;
    transition: var(--transition);
    width: calc(100% - var(--sidebar-width));
}

/* --- 4. HEADER (GÜNCELLENDİ) --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: var(--bg-white);
    padding: 10px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    gap: 15px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    margin-right: 20px;
}

.search-bar {
    flex: 1;
    min-width: 200px;
    position: relative;
    margin-right: 20px;
}

.search-bar input {
    width: 100%;
    padding: 10px 20px 10px 40px;
    border: 1px solid #eee;
    border-radius: 30px;
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-grey);
}

/* Header Sağ Taraf (Renk Paleti & Switch) */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mini Color Picker (Header İçin) */
.mini-color-picker {
    display: flex;
    gap: 8px;
    padding: 5px;
    background: var(--bg-light);
    border-radius: 20px;
    align-items: center;
}

.mini-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--bg-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.mini-dot:hover { transform: scale(1.3); }

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(26px); }

/* --- 5. HAKKIMIZDA & KURUMSAL BÖLÜM (YENİ) --- */
.about-section {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
}

.about-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.about-text {
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.policy-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

.policy-list li {
    padding-left: 20px;
    position: relative;
    color: var(--text-grey);
    font-size: 0.9rem;
}

.policy-list li::before {
    content: '\f00c'; /* FontAwesome Check Icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

/* --- 6. KATEGORİLER --- */
.categories-section { margin-bottom: 30px; }
.section-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-dark);
    border-left: 5px solid var(--primary-color);
    padding-left: 10px;
}

.category-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: none;
}

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

.cat-card {
    min-width: 120px;
    background: var(--bg-white);
    padding: 15px 10px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cat-card:hover, .cat-card.active-cat {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.cat-card img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid var(--bg-light);
}

.cat-card h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cat-card.active-cat h5 { color: var(--primary-color); }

/* --- 7. BANNER --- */
.banner {
    width: 100%;
    height: 220px;
    background-image: url('https://images.unsplash.com/photo-1599321955726-e04852be8218?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    padding: 0 50px;
    box-shadow: var(--shadow);
}

.banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(0,0,0,0.4) 100%);
    opacity: 0.9;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 70%;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-content h2 { font-size: 1.8rem; margin-bottom: 10px; font-weight: 800; }
.banner-content p { font-size: 1rem; opacity: 0.95; font-weight: 500; line-height: 1.4; }

/* --- 8. ÜRÜN KARTLARI (FİYAT GİZLENDİ) --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 80px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: rgba(0, 150, 136, 0.1);
}

.rating {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #ff5722;
    color: white;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 8px;
    z-index: 2;
    display: flex; align-items: center; gap: 5px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.product-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.3s;
}

.product-img:hover { filter: brightness(1.05); }

.product-info h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 700;
}

/* Fiyat Alanı Kaldırıldığı için Footer Ayarları */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    flex: 1;
    justify-content: center;
    margin-right: 10px;
}

.btn-whatsapp:hover {
    background-color: #1ebc57;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.add-btn {
    background: var(--bg-light);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.add-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

/* --- 9. MODAL (POPUP) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    padding: 20px;
}

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

.modal-content {
    background: var(--bg-white);
    width: 100%;
    max-width: 650px;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from { transform: translateY(100px) scale(0.8); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header { position: relative; height: 300px; }
.modal-img { width: 100%; height: 100%; object-fit: cover; }

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    color: white;
    width: 45px; height: 45px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    transition: 0.3s;
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255,255,255,0.2);
}

.close-modal:hover { background: #e91e63; transform: rotate(90deg); }

.modal-body { padding: 30px; }
.modal-title { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 10px; font-weight: 800; }
.modal-desc { color: var(--text-grey); line-height: 1.8; margin-bottom: 25px; font-size: 1rem; }
.modal-ingredients { background: var(--bg-light); padding: 20px; border-radius: 15px; margin-bottom: 25px; border-left: 5px solid var(--primary-color); }

.modal-ingredients h6 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: bold;
    display: flex; align-items: center; gap: 8px;
}

.modal-ingredients p { font-size: 0.9rem; color: var(--text-dark); }
.modal-footer { padding: 0 30px 30px; }
.btn-block { width: 100%; justify-content: center; padding: 15px; font-size: 1.1rem; }

/* --- 10. ADMIN PANEL STİLLERİ (YENİ) --- */
.admin-container { max-width: 1000px; margin: 50px auto; padding: 20px; }
.login-box {
    max-width: 400px;
    margin: 100px auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.login-box h2 { color: var(--primary-color); margin-bottom: 20px; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 5px; color: var(--text-grey); }
.form-control {
    width: 100%; padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    background: var(--bg-light);
    color: var(--text-dark);
}

.btn-admin {
    width: 100%; padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}
.btn-admin:hover { background: var(--primary-dark); }

.admin-table {
    width: 100%; border-collapse: collapse;
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.admin-table th, .admin-table td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
.admin-table th { background: var(--primary-color); color: white; }
.admin-table tr:hover { background: var(--bg-light); }
.badge { padding: 5px 10px; background: var(--bg-light); border-radius: 5px; font-size: 0.8rem; color: var(--primary-color); }

/* --- 11. FLOATING WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-green);
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1500;
    text-decoration: none;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.whatsapp-float:hover { background-color: #1ebc57; transform: scale(1.1); animation: none; }

/* --- 12. RESPONSIVE --- */
@media (max-width: 992px) {
    :root { --sidebar-width: 0px; }
    .sidebar { transform: translateX(-100%); width: 280px; }
    .sidebar.open { transform: translateX(0); box-shadow: 10px 0 30px rgba(0,0,0,0.5); }
    .main-content { margin-left: 0; width: 100%; padding: 15px; }
    .banner { padding: 0 20px; height: 180px; }
    .banner-content h2 { font-size: 1.4rem; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 55px; height: 55px; font-size: 28px; }
    .hamburger { display: block; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-img { height: 140px; }
    .header-right { gap: 10px; }
}