/* Ana Stiller */
:root {
    --primary-color: #5c4f41;
    --secondary-color: #8a7866;
    --accent-color: #da9f5b;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    padding-bottom: 80px;
}

/* Header ve Arama */
.restaurant-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.restaurant-name {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
    color: #ffffff !important;
}

.search-container {
    padding: 15px;
    background-color: var(--primary-color);
}

.search-box {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    outline: none;
    font-size: 16px;
    box-shadow: var(--shadow);
}

/* Kategori Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}

.category-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
    text-decoration: none;
    display: block;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-img {
    transform: scale(1.05);
}

.category-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    font-size: 16px;
    font-weight: 500;
}

/* Sepet Butonu */
.cart-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-button:hover {
    transform: translateY(-5px);
    background-color: var(--secondary-color);
    color: white;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Ürün Listesi */
.product-section {
    padding: 15px;
}

.product-card {
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    overflow: hidden;
    background-color: var(--card-bg);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-name {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.product-price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 18px;
}

.product-description {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

/* Medya Sorguları */
@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .category-name {
        font-size: 14px;
        padding: 8px;
    }
}

/* Başlık Bölümü */
.restaurant-name {
    color: #ffffff !important;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.lead {
    color: var(--secondary-color);
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Kategori Gezinme */
.category-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.98);
    padding: 20px 0;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.category-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.category-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    border-radius: 20px;
    background-color: var(--card-bg);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    min-height: 140px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.category-btn i {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.category-btn span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.category-btn:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-btn:hover::before {
    opacity: 0.05;
}

.category-btn:hover i {
    transform: scale(1.1);
    color: var(--accent-color);
}

.category-btn.active {
    background: var(--gradient);
    border-color: transparent;
}

.category-btn.active i,
.category-btn.active span {
    color: white;
}

/* Kategori Bölümleri */
.category-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem;
    position: relative;
    padding-bottom: 12px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Ürün Kartları */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--card-bg);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image {
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.card-body {
    padding: 1.8rem;
}

.product-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.product-description {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

.product-price {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-top: 1.2rem;
}

.allergens {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.8rem;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Footer Stilleri */
.footer {
    background: var(--gradient);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.footer-brand i {
    font-size: 2.5rem;
    color: var(--accent-color);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.footer-brand h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.footer .language-selector {
    display: flex;
    gap: 0.8rem;
}

.footer .language-selector .btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 25px;
}

.footer .language-selector .btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.footer .language-selector .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.footer .language-selector .btn-primary:hover {
    background-color: var(--accent-color);
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.8;
}

/* Responsive Ayarlar */
@media (max-width: 768px) {
    .restaurant-name {
        font-size: 2.2rem;
    }
    
    .category-buttons {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .category-btn {
        min-height: 120px;
        padding: 15px 10px;
    }
    
    .category-btn i {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .category-btn span {
        font-size: 0.9rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-brand {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .footer .language-selector {
        justify-content: center;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.category-section {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sepet Stilleri */
.cart-container {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-container.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.cart-close:hover {
    color: var(--accent-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 1rem;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--accent-color);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    background: var(--light-bg);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.cart-item-remove {
    color: #dc3545;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.cart-item-remove:hover {
    color: #c82333;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--light-bg);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.cart-total-amount {
    color: var(--accent-color);
}

.cart-actions {
    display: flex;
    gap: 1rem;
}

.cart-actions button {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn {
    background: var(--accent-color);
    color: white;
}

.checkout-btn:hover {
    background: #d63d57;
}

.clear-cart-btn {
    background: var(--light-bg);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.clear-cart-btn:hover {
    background: #e9ecef;
}

/* Sipariş Butonu */
.order-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.order-btn:hover {
    background: #d63d57;
    transform: translateY(-2px);
}

.order-btn i {
    font-size: 1.1rem;
}

/* Sipariş Formu Stilleri */
.order-form-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.order-form-container.active {
    display: flex;
}

.order-form {
    background: var(--card-bg);
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-form-header {
    padding: 1.5rem;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-form-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.order-form-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.order-form-close:hover {
    transform: rotate(90deg);
}

#orderForm {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    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(79, 70, 229, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.order-summary {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.order-summary h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
}

.order-items {
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.order-item-name {
    font-weight: 500;
}

.order-item-quantity {
    color: var(--text-color);
}

.order-item-price {
    color: var(--accent-color);
    font-weight: 600;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.order-total-amount {
    color: var(--accent-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
}

.form-actions button {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-order-btn {
    background: var(--accent-color);
    color: white;
}

.submit-order-btn:hover {
    background: #d63d57;
}

.cancel-order-btn {
    background: var(--light-bg);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.cancel-order-btn:hover {
    background: #e9ecef;
}

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

/* Kategori Detay Sayfası */
.restaurant-header {
    display: flex;
    align-items: center;
    padding: 15px;
}

.back-link {
    color: white;
    font-size: 18px;
    margin-right: 15px;
    text-decoration: none;
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-card {
    position: relative;
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--card-bg);
}

.product-card a {
    display: flex;
    text-decoration: none;
    color: var(--text-color);
}

.product-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}

.product-info {
    padding: 15px;
    flex-grow: 1;
}

.add-to-cart-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.add-to-cart-btn:hover {
    background-color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 576px) {
    .product-card a {
        flex-direction: column;
    }
    
    .product-image {
        width: 100%;
        height: 180px;
        border-radius: 10px 10px 0 0;
    }
    
    .product-info {
        width: 100%;
    }
} 