/* Market Sistemi - Modern Tasarım */

/* Genel Stil Ayarları */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Navbar Özelleştirme */
.navbar {
    background: #ff6600 !important;
    box-shadow: none;
    border: none;
    padding: 20px 0;
    position: relative;
    min-height: 160px; /* Logo yüksekliği + padding için */
}

.navbar .container {
    position: relative;
    align-items: center;
    min-height: 120px;
}

.navbar-brand {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 999;
    font-weight: bold;
    font-size: 1.5rem;
    color: #fff !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: #fff !important;
}

/* Logo Tasarımı */
.logo-placeholder, .logo-img {
    transition: transform 0.3s ease;
    background: #ffffff !important;
    width: 120px !important;
    height: 120px !important;
    object-fit: contain; /* PNG şeffaflığı için */
    border-radius: 8px;
    display: block;
}

/* PNG desteği için özel ayarlar */
.logo-img {
    background: transparent !important; /* PNG şeffaflığı için */
}

.navbar-brand:hover .logo-placeholder,
.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

.logo-img {
    object-fit: contain;
}

.navbar-brand span {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Navbar Nav Öğeleri - Logo ile aynı yükseklikte */
.navbar-nav {
    height: 120px;
    align-items: center;
}

.navbar-nav .nav-item {
    height: auto;
    display: flex;
    align-items: center;
}

.navbar-nav .btn-warning {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
}

.navbar-nav .dropdown {
    height: 50px;
    display: flex;
    align-items: center;
}

.navbar-nav .dropdown-toggle {
    height: 50px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 5px;
    border-radius: 5px;
    padding: 8px 15px !important;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

/* Dropdown Menu Tasarımı */
.dropdown-menu {
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    margin-top: 5px;
}

.dropdown-item {
    color: #495057;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 2px 5px;
}

.dropdown-item:hover {
    background: linear-gradient(45deg, #fd7e14, #ff8c00);
    color: white;
    transform: translateX(5px);
}

.dropdown-divider {
    border-color: #dee2e6;
    margin: 5px 0;
}

/* Navbar Butonları */
.navbar .btn-outline-light {
    border-color: rgba(255,255,255,0.5);
    color: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

.navbar .btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-1px);
}

.navbar .btn-warning {
    background: linear-gradient(45deg, #fd7e14, #ff8c00);
    border: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar .btn-warning:hover {
    background: linear-gradient(45deg, #ff8c00, #fd7e14);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.4);
}

/* Container Ayarları */
.container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-top: 0;
    margin-bottom: 0;
    max-width: 100%;
}

/* Ana Bölüm */
.main-section {
    background: #f5f5f5;
    min-height: calc(100vh - 80px);
    padding: 40px 20px 40px 20px;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cart-button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

.cart-button::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;
}

.cart-button:hover::before {
    left: 100%;
}

.cart-button:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.cart-button .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6600 !important;
    color: white !important;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

/* Kategoriler Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

/* Card Tasarımları */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-header {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-text {
    color: #6c757d;
    line-height: 1.6;
}

/* Buton Tasarımları */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, #fd7e14, #ff8c00);
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #ff8c00, #fd7e14);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 126, 20, 0.4);
}

.btn-success {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-danger {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-warning {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

/* Form Elemanları */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control:focus {
    border-color: #fd7e14;
    box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.25);
    background-color: #fff;
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
}

/* Alert Mesajları */
.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(45deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.alert-info {
    background: linear-gradient(45deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

/* Kategori Listesi */
.list-group-item {
    border: none;
    border-radius: 8px !important;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.list-group-item.active {
    background: linear-gradient(45deg, #fd7e14, #ff8c00);
    border-color: #fd7e14;
}

/* Tablo Tasarımları */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.table thead th {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    font-weight: 600;
    padding: 15px;
}

.table tbody td {
    padding: 12px 15px;
    border-color: #e9ecef;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Badge Tasarımları */
.badge {
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Modal Tasarımları */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 15px 15px;
}

/* Özel Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* Fiyat Vurgulama */
.card-text strong {
    color: #fd7e14;
    font-size: 1.1rem;
}

/* Kategori Kutucuk Tasarımı */
.category-box {
    aspect-ratio: 1;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

.category-box.orange {
    background: #ff6600;
}

.category-box.green {
    background: #4CAF50;
}

.category-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-decoration: none;
}

.category-box img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.category-box .category-icon {
    font-size: 2.5rem;
    color: white;
}

.category-name {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    background: rgba(0,0,0,0.3);
    padding: 4px;
    border-radius: 8px;
}

/* Animasyonlar */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar sepet butonu */
.navbar .btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
    border: none;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.navbar .btn-warning:hover {
    background: linear-gradient(135deg, #e0a800, #ffc107) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

/* Ana sayfa sepet butonu animasyonu */
.main-content .cart-button {
    animation: pulse 2s infinite;
}

.main-content .cart-button:hover {
    animation: bounce 0.6s ease-in-out;
}

/* Toast container */
.toast-container {
    z-index: 9999;
}

/* Başarı toast */
.toast.bg-success {
    border-left: 5px solid #28a745;
}

.toast.bg-danger {
    border-left: 5px solid #dc3545;
}

.toast.bg-info {
    border-left: 5px solid #17a2b8;
}

/* Modal animasyonları */
.modal.fade .modal-dialog {
    transform: translate(0, -50px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}

/* Buton loading animasyonu */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Responsive kategoriler ve genel tasarım */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 15px;
    }
    
    .category-box {
        min-height: 80px;
    }
    
    .category-box .category-icon {
        font-size: 2rem;
    }
    
    .category-name {
        font-size: 0.7rem;
    }
    
    .container {
        margin: 10px;
        padding: 20px;
        border-radius: 10px;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    

    
    .auth-section {
        padding: 20px !important;
        border-radius: 10px !important;
    }
    
    .auth-section .btn {
        padding: 10px 20px !important;
        font-size: 0.9rem;
    }
}

/* Footer Tasarımı */
footer {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 20px 0;
    margin-top: 40px;
}

/* Özel Sınıflar */
.price-highlight {
    color: #fd7e14;
    font-weight: bold;
    font-size: 1.2rem;
}

.product-grid {
    gap: 20px;
}

.category-sidebar {
    position: sticky;
    top: 20px;
}

/* Sepet Toplamı */
.cart-total {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: bold;
}

/* Auth Section Stilleri */
.auth-section {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa) !important;
    border-top: 2px solid #dee2e6 !important;
}

.auth-section p {
    font-size: 1.1rem;
    font-weight: 500;
}

.auth-section .btn {
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.auth-section .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
}

.auth-section .btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
}

/* Mobil responsive navbar */
@media (max-width: 991.98px) {
    .navbar {
        min-height: 140px;
        padding: 10px 0;
    }
    
    .navbar .container {
        min-height: 120px;
    }
    
    .navbar-nav {
        display: none !important;
    }
    
    .logo-placeholder, .logo-img {
        width: 100px !important;
        height: 100px !important;
    }
}

/* Mobil butonları için hover efektleri */
@media (max-width: 991.98px) {
    .btn[style*="linear-gradient"]:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
    }
    
    .btn[style*="linear-gradient"]:active {
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    }
}

/* Sepet buton iyileştirmeleri */
.cart-button {
    transition: all 0.3s ease;
}

.cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Mobil sipariş tamamla buton animasyonu */
.btn[style*="28a745"]:hover {
    background: linear-gradient(135deg, #20c997, #28a745) !important;
}

 