/* Reset ve Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #fafafa 0%, #f8f8f8 50%, #ffffff 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 0, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header Stiller */
.header {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 50%, #f48fb1 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 25px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.restaurant-info {
    position: relative;
    z-index: 2;
    width: 100%;
}

.restaurant-info h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #ffffff, #f8f9fa, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.restaurant-info p {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.header-actions {
    position: relative;
    z-index: 2;
}

.admin-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.admin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.admin-btn:hover::before {
    left: 100%;
}

.admin-btn:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0.2));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    border-color: rgba(255,255,255,0.5);
}

.admin-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Kategori Stiller */
.categories {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding: 15px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    border: 2px solid rgba(0, 0, 0, 0.1);
    padding: 18px 30px;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    min-width: fit-content;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    color: #495057;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
    transition: left 0.6s;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover {
    border-color: rgba(0, 0, 0, 0.2);
    color: #212529;
    transform: translateY(-2px);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.9));
}

.category-btn.active {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    color: white;
    border-color: #212529;
    transform: translateY(-1px);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.category-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.category-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.category-btn:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Menü Container */
.menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Menü Öğesi Kartları */
.menu-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    backdrop-filter: blur(20px);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.01));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 25px;
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    border-color: rgba(0, 0, 0, 0.1);
}

.menu-item-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}

.menu-item-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8), transparent);
    pointer-events: none;
}

.menu-item-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.menu-item-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.menu-item:hover .menu-item-name {
    color: #212529;
}

.menu-item-price {
    font-size: 1.3rem;
    font-weight: 400;
    background: linear-gradient(135deg, #e91e63, #f06292);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    position: relative;
}

.menu-item-price::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #e91e63, #f06292);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.menu-item:hover .menu-item-price::after {
    transform: scaleX(1);
}

.menu-item-description {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}

.menu-item-category {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.03));
    color: #495057;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-item-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
    transition: left 0.5s;
}

.menu-item:hover .menu-item-category::before {
    left: 100%;
}

.menu-item:hover .menu-item-category {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.05));
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    color: #212529;
}

/* Loading ve Empty State */
.loading {
    text-align: center;
    padding: 50px;
    color: #666;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #667eea;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ddd;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

/* Butonlar */
.btn-primary {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Modal Stiller */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(33, 37, 41, 0.4));
    backdrop-filter: blur(20px);
    animation: modalBackdropFadeIn 0.4s ease;
}

@keyframes modalBackdropFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(20px);
    }
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    margin: 3% auto;
    padding: 0;
    border-radius: 30px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    animation: modalSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-100px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    position: absolute;
    right: 25px;
    top: 25px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #495057;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.close:hover {
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: white;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.modal-item-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 4rem;
}

.modal-item-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
    pointer-events: none;
}

.modal-body {
    padding: 35px;
    position: relative;
}

.modal-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

.modal-item-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2d3748;
    margin: 20px 0 0 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #2d3748, #4a5568);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-item-price {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #e91e63, #f06292);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    position: relative;
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.5);
}

.modal-item-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.03));
    border-radius: 18px;
    z-index: -1;
}

.modal-item-description {
    color: #4a5568;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 400;
    text-align: justify;
}

.modal-item-category {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.modal-item-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.modal-item-category:hover::before {
    left: 100%;
}

.modal-item-category:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .container {
        padding: 8px;
    }
    
    .header {
        padding: 25px 15px;
        margin-bottom: 25px;
        background-position: center center;
        background-size: cover;
        background-attachment: scroll;
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .restaurant-info {
        width: 100%;
        text-align: center;
    }
    
    .restaurant-info h1 {
        font-size: 2.2rem;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }
    
    .restaurant-info p {
        font-size: 1rem;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    }
    
    .menu-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .categories {
        gap: 12px;
        padding: 8px 0;
        margin-bottom: 25px;
    }
    
    .category-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .menu-item {
        border-radius: 18px;
    }
    
    .menu-item-image {
        height: 140px;
        font-size: 2.5rem;
    }
    
    .menu-item-content {
        padding: 15px;
    }
    
    .menu-item-header {
        margin-bottom: 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .menu-item-name {
        font-size: 0.95rem;
        line-height: 1.2;
        margin-bottom: 0;
    }
    
    .menu-item-price {
        font-size: 0.9rem;
        font-weight: 400;
    }
    
    .menu-item-description {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 12px;
        -webkit-line-clamp: 2;
    }
    
    .menu-item-category {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        border-radius: 25px;
    }
    
    .modal-body {
        padding: 25px;
    }
    
    .modal-item-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .modal-item-name {
        font-size: 2rem;
    }
    
    .modal-item-price {
        font-size: 2rem;
        padding: 8px 16px;
    }
    
    .modal-item-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .header {
        padding: 25px 15px;
        margin-bottom: 25px;
        border-radius: 20px;
        background-position: center center;
        background-size: cover;
        background-attachment: scroll;
        min-height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .restaurant-info {
        width: 100%;
        text-align: center;
    }
    
    .restaurant-info h1 {
        font-size: 2rem;
        margin-bottom: 10px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
        color: white;
        -webkit-text-fill-color: white;
    }
    
    .restaurant-info p {
        font-size: 1rem;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
        color: rgba(255, 255, 255, 0.95);
    }
    
    .categories {
        gap: 12px;
        margin-bottom: 25px;
    }
    
    .category-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        gap: 8px;
    }
    
    .category-btn i {
        font-size: 1rem;
    }
    
    .menu-container {
        gap: 15px;
    }
    
    .menu-item {
        border-radius: 18px;
    }
    
    .menu-item-image {
        height: 180px;
        font-size: 3rem;
    }
    
    .menu-item-content {
        padding: 18px;
    }
    
    .menu-item-name {
        font-size: 1.2rem;
    }
    
    .menu-item-price {
        font-size: 1rem;
    }
    
    .menu-item-description {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .menu-item-category {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 98%;
        border-radius: 20px;
    }
    
    .modal-item-image {
        height: 250px;
        font-size: 3.5rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-item-name {
        font-size: 1.8rem;
    }
    
    .modal-item-price {
        font-size: 1.8rem;
        padding: 6px 14px;
    }
    
    .modal-item-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .modal-item-category {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .close {
        right: 15px;
        top: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 360px) {
    .container {
        padding: 5px;
    }
    
    .header {
        padding: 20px 12px;
        margin-bottom: 20px;
        background-position: center center;
        background-size: cover;
        background-attachment: scroll;
        min-height: 160px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .restaurant-info {
        width: 100%;
        text-align: center;
    }
    
    .restaurant-info h1 {
        font-size: 1.8rem;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
        color: white;
        -webkit-text-fill-color: white;
    }
    
    .restaurant-info p {
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
        color: rgba(255, 255, 255, 0.95);
    }
    
    .category-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .menu-item-content {
        padding: 15px;
    }
    
    .menu-item-name {
        font-size: 1.1rem;
    }
    
    .menu-item-price {
        font-size: 1.2rem;
    }
}
