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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2C344E 0%, #4A5568 100%);
    min-height: 100vh;
    color: #333;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, #2C344E 0%, #3d4a66 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    letter-spacing: 2px;
}

/* Category Filter Section */
.category-filter-section {
    background: white;
    padding: 30px 0;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.filter-title {
    color: #2C344E;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.filter-btn:hover {
    border-color: #D4AF37;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, #2C344E 0%, #3d4a66 100%);
    border-color: #2C344E;
    color: white;
}

.filter-icon {
    font-size: 2rem;
}

.filter-text {
    font-size: 0.9rem;
    font-weight: bold;
}

.filter-btn.active .filter-text {
    color: white;
}

/* Menu Header */
.menu-header {
    text-align: center;
    margin: 30px 0 20px;
}

.menu-header h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.product-count {
    color: white;
    font-size: 1rem;
    opacity: 0.9;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 20px 0 40px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
}

.product-content {
    padding: 20px;
}

.product-category {
    display: inline-block;
    background: linear-gradient(135deg, #D4AF37 0%, #F4C430 100%);
    color: #2C344E;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.product-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 10px;
}

.product-description {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, #2C344E 0%, #4A5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer / Contact Section */
footer {
    background: linear-gradient(135deg, #2C344E 0%, #1a202c 100%);
    color: white;
    padding: 60px 20px 40px;
    margin-top: 60px;
}

footer h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-item .icon {
    font-size: 3rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: white;
}

.contact-item p {
    font-size: 1rem;
    opacity: 0.9;
}

.admin-link {
    text-align: center;
    margin-top: 30px;
}

.admin-link a {
    display: inline-block;
    background: linear-gradient(135deg, #D4AF37 0%, #F4C430 100%);
    color: #2C344E;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.admin-link a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Admin Panel Styles */
.admin-body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

.admin-header {
    background: linear-gradient(135deg, #2C344E 0%, #3d4a66 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.admin-header h1 {
    font-size: 2rem;
}

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

.logged-user {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.btn-back {
    background: white;
    color: #2C344E;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.btn-back:hover {
    transform: translateX(-5px);
}

.btn-logout {
    background: #f56565;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-logout:hover {
    background: #e53e3e;
}

.admin-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.admin-section h2 {
    color: #2C344E;
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 3px solid #D4AF37;
    padding-bottom: 10px;
}

/* Form Styles */
.product-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2C344E;
}

.form-group small {
    color: #718096;
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
}

.btn-primary,
.btn-secondary,
.btn-edit,
.btn-delete {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2C344E 0%, #3d4a66 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 52, 78, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-edit {
    background: linear-gradient(135deg, #D4AF37 0%, #F4C430 100%);
    color: #2C344E;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #F4C430 0%, #D4AF37 100%);
    transform: translateY(-2px);
}

.btn-delete {
    background: #f56565;
    color: white;
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-delete:hover {
    background: #e53e3e;
}

/* Table Styles */
.products-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(135deg, #2C344E 0%, #3d4a66 100%);
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

tbody tr:hover {
    background: #f7fafc;
}

.product-img-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
}

.table-actions {
    display: flex;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }

    /* Mobilde 2 s¸«ätun */
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card {
        border-radius: 15px;
    }

    .product-image {
        height: 150px;
    }

    .product-content {
        padding: 15px;
    }

    .product-name {
        font-size: 1.1rem;
    }

    .product-description {
        font-size: 0.8rem;
    }

    .product-price {
        font-size: 1.4rem;
    }

    /* Kategori filtreleri mobilde */
    .category-filters {
        gap: 10px;
    }

    .filter-btn {
        min-width: 80px;
        padding: 12px 15px;
    }

    .filter-icon {
        font-size: 1.5rem;
    }

    .filter-text {
        font-size: 0.8rem;
    }

    .filter-title {
        font-size: 1.3rem;
    }

    .admin-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-back, .btn-logout {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 10px;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.empty-state h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 1.2rem;
    opacity: 0.8;
}

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

.product-card {
    animation: fadeIn 0.5s ease;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #D4AF37 0%, #F4C430 100%);
    color: #2C344E;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    animation: fadeIn 0.3s ease;
}

.error-message {
    background: #f56565;
    color: white;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    animation: fadeIn 0.3s ease;
}

/* Image Preview */
.image-preview {
    margin-top: 15px;
    display: none;
}

.image-preview.active {
    display: block;
}

.image-preview img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.image-preview .remove-image {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: #f56565;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
}

.image-preview .remove-image:hover {
    background: #e53e3e;
}

/* Login Screen */
.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #2C344E;
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-header p {
    color: #718096;
    font-size: 0.95rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-error {
    background: #fee;
    color: #c53030;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.login-error.active {
    display: block;
}

.btn-login {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}
