/* Modern Pazar Yeri CSS - Bootstrap ile Tailwind Benzeri Tasarım */

:root {
    /* Ana Renkler */
    --primary-color: #FF6D00;
    --primary-rgb: 255, 109, 0;
    
    /* Arka Plan Renkleri */
    --bg-light: #FFFFFF;
    --bg-dark: #121212;
    --bg-card-light: #F9FAFB;
    --bg-card-dark: #1E1E1E;
    
    /* Metin Renkleri */
    --text-light: #1F2937;
    --text-dark: #E5E7EB;
    --text-secondary-light: #6B7280;
    --text-secondary-dark: #9CA3AF;
    
    /* Kenarlık Renkleri */
    --border-light: #E5E7EB;
    --border-dark: #374151;
    
    /* Gölge Efektleri */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Bootstrap Override */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #e55a00;
    border-color: #e55a00;
}



.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Genel Stil */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-card-light);
    color: var(--text-light);
}

/* Header Stilleri */
.top-banner {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
}

.main-header {
    background-color: var(--bg-light);
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    color: var(--text-secondary-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.btn-whatsapp:hover {
    background-color: #20b858;
    border-color: #20b858;
}

.btn-register {
    background-color: #1E40AF;
    border-color: #1E40AF;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.btn-register:hover {
    background-color: #1D4ED8;
    border-color: #1D4ED8;
}

.btn-login {
    color: var(--text-secondary-light);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.btn-login:hover {
    color: var(--primary-color);
}

/* Ana İçerik Stilleri */
.hero-section {
    text-align: center;
    margin-bottom: 48px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary-light);
    margin-bottom: 32px;
}

/* Arama Formu */
.search-section {
    background-color: var(--bg-light);
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
}

.search-input {
    position: relative;
}

.search-input .form-control {
    padding-left: 40px;
    border-color: var(--border-light);
    background-color: var(--bg-light);
}

.search-input .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary-light);
    z-index: 10;
}

.form-select {
    border-color: var(--border-light);
    background-color: var(--bg-light);
}

.form-select:focus,
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 109, 0, 0.25);
}

/* Product Cards */
.product-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 auto;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(74, 144, 226, 0.2);
}

.product-image {
    width: 100%;
    height: 180px; /* Sabit resim yüksekliği */
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Resmin küçülmesini engelle */
}

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

/* Seller Area Specific Cards */
.seller-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.seller-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* Modifiers for seller contexts */
.seller-card--header {
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.seller-card--filter {
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.seller-card--stats {
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.seller-card--recent {
    border-radius: 14px;
}

.seller-card--recent-item {
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.seller-card--empty {
    text-align: center;
    border-style: dashed;
    border-color: rgba(0, 0, 0, 0.1);
}

.product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 240px; /* Sabit içerik yüksekliği */
    overflow: hidden; /* Taşan içeriği gizle */
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

/* Product header with title and seller inline */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

/* Inline seller information */
.product-seller-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
    background: rgba(74, 144, 226, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-seller-inline .material-icons {
    font-size: 14px;
    color: #4a90e2;
}

.product-category {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Category positioning - top right */
.product-category-topleft {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 0 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
}

.category-plugin {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: white;
    padding: 0.75rem 1.5rem; 
    font-size: 1rem;
    border-radius: 8px; 
}

.category-map {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.category-server {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: white;
    padding: 0.75rem 1.5rem; 
    font-size: 1rem;
    border-radius: 8px; 
}



.product-seller {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #888;
}

/* Seller positioning - bottom left */
.product-seller-bottomright {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #888;
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.product-seller .material-icons {
    font-size: 16px;
    color: #4a90e2;
}

.product-seller-bottomright .material-icons {
    font-size: 14px;
    color: #4a90e2;
}

/* Product footer with aligned price and button */


.price-container {
    flex: 1;
    min-width: 0;
}



.btn-buy {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #357abd 0%, #2c5aa0 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-buy .material-icons {
    font-size: 16px;
}



.product-discount-badge .material-icons {
    font-size: 16px;
    margin-right: 2px;
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.discounted-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b6b;
}

.countdown-timer {
    background: linear-gradient(135deg, #ffd32a 0%, #ff9500 100%);
    color: #333;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.countdown-timer.urgent {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    animation: blink 1s infinite;
}

.countdown-timer .material-icons {
    font-size: 14px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 20px;
        height: 380px; /* Mobil için sabit yükseklik */
        max-width: 280px; /* Mobil için maksimum genişlik */
    }
    
    .product-image {
        height: 160px; /* Mobil için resim yüksekliği */
    }
    
    .product-content {
        padding: 16px;
        height: 220px; /* Mobil için içerik yüksekliği */
    }
    
    .product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .product-category {
        align-self: flex-start;
    }
    
    .product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .btn-buy {
        justify-content: center;
        padding: 12px 16px;
    }
}



/* CTA Bölümü */
.cta-section {
    background-color: #1E40AF;
    color: white;
    text-align: center;
    padding: 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin-top: 80px;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: 24px;
    max-width: 512px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background-color: white;
    color: #1E40AF;
    font-weight: 700;
    padding: 12px 32px;
    font-size: 1.125rem;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn-cta:hover {
    background-color: #F3F4F6;
    color: #1E40AF;
}

/* Footer Stilleri */
.main-footer {
    background-color: #1F2937;
    color: white;
    padding: 48px 0 24px;
    margin-top: 80px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.footer-subtitle {
    font-size: 14px;
    color: #9CA3AF;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 14px;
    color: #9CA3AF;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #9CA3AF;
}

.contact-info i {
    margin-right: 8px;
    font-size: 18px;
}

.social-links a {
    display: inline-block;
    margin-right: 12px;
    color: #9CA3AF;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.payment-methods img {
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.payment-methods img:hover {
    opacity: 1;
}

/* Layout Düzeltmeleri */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header sabit yükseklik */
.top-banner {
    flex-shrink: 0;
}

.main-header {
    flex-shrink: 0;
}

/* Main content esnek alan */
main {
    flex: 1 0 auto;
    min-height: 0;
}

/* Footer sabit yükseklik */
.main-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Container ve Spacing Düzeltmeleri */
.container {
    max-width: 1200px;
}

/* Wrapper için ek stil */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* İçerik alanı için minimum yükseklik */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    margin-top: 32px;
    padding-top: 32px;
}

.footer-bottom-links a {
    color: var(--text-secondary-light);
    text-decoration: none;
    margin-right: 16px;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-section {
        padding: 16px;
    }
    
    .product-content {
        padding: 16px;
    }
    
    .cta-section {
        padding: 24px 16px;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
}

/* Kullanıcı Paneli Stilleri */
.user-sidebar {
    background-color: var(--bg-light);
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 16px;
}

.user-info h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 4px;
}

.user-info p {
    font-size: 14px;
    color: var(--text-secondary-light);
}

.sidebar-nav {
    margin-top: 24px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary-light);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover {
    background-color: #F3F4F6;
    color: var(--text-light);
}

.sidebar-nav a.active {
    background-color: rgba(255, 109, 0, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-nav i {
    margin-right: 12px;
    width: 20px;
}

/* Animasyonlar */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

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