/* ===== MOBILE-FIRST RESPONSIVE DESIGN ===== */
/* Market sayfası için temizlenmiş CSS */

.market-vertical {
    background: #ffffff;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
}

/* ===== MARKET HERO ===== */
.market-hero {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #667eea 100%);
    padding: 100px 0 60px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.market-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.market-hero-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 80px;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.market-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* ===== FILTERS SECTION ===== */
.filters-section {
    margin-bottom: 32px;
}

.filters-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 24px 0;
}

.simple-filters {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filter-group {
    margin-bottom: 0;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

/* Category Chips */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-chip {
    background: #f1f5f9;
    color: #64748b;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-chip:hover {
    background: #e2e8f0;
    color: #475569;
    transform: translateY(-1px);
}

.category-chip.active {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-color: #ff6b35;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Hashtag Chips */
.hashtag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hashtag-chip {
    background: #f8fafc;
    color: #6366f1;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hashtag-chip:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.hashtag-chip .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Hashtag Section - kategorilerin altında */
.hashtag-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.hashtag-section .filter-title {
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #64748b;
}

/* ===== PRODUCTS SECTION ===== */


.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.results-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.results-count {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end;
}

.sort-controls {
    margin: 0;
}

.sort-select {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    font-size: 0.85rem;
    color: #475569;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:hover {
    border-color: #ff6b35;
}

.sort-select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cards per row on desktop */
    gap: 16px;
    margin-bottom: 40px;
    max-width: 1300px;
    margin: 0 auto 40px auto;
    padding: 0 16px;
}

/* Responsive grid adjustments */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 cards per row on tablets */
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row on mobile */
        gap: 12px;
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* Mobilde de 2 kart yan yana */
        gap: 10px;
        padding: 0 10px;
    }
}

/* ===== NO PRODUCTS ===== */
.no-products {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    text-align: center;
}

.no-products-content {
    max-width: 400px;
    padding: 32px 16px;
}

.no-products-icon {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.no-products-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
}

.no-products-content p {
    color: #94a3b8;
    margin-bottom: 24px;
    line-height: 1.6;
}

.reset-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #e8821a 100%);
    transform: translateY(-1px);
}

/* ===== PAGINATION ===== */
.pagination-nav {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.pagination-info {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #374151;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-number {
    padding: 8px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-number:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #374151;
}

.page-number.active {
    background: #ff6b35;
    border-color: #ff6b35;
    color: white;
}

.page-ellipsis {
    padding: 8px 4px;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-stats {
        gap: 16px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .market-container {
        padding: 16px 12px;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .results-info h2 {
        font-size: 1.5rem;
    }
    
    .pagination-nav {
        flex-direction: column;
        gap: 16px;
    }
    
    .page-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .category-chips {
        gap: 8px;
    }
    
    .category-chip {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .simple-filters {
        gap: 16px;
    }
}

/* ===== SEARCH RESULTS SPECIFIC STYLES ===== */
/* Arama sonuçları sayfası için özel stiller */

.search-results-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 0;
}

.search-results-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.2rem;
    font-weight: 600;
}

.search-results-info {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Search page'de filter section düzenlemesi */
.market-vertical .filter-section {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 25px 30px;
}

.market-vertical .filter-header {
    margin-bottom: 15px;
}

.market-vertical .filter-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.market-vertical .filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.market-vertical .filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.market-vertical .filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.market-vertical .filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}



/* No results styling for search */
.market-vertical .no-results {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 20px 0;
}

.market-vertical .no-results-content h3 {
    color: #495057;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.market-vertical .no-results-content p {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search page pagination */
.market-vertical .pagination-wrapper {
    padding: 40px 30px;
    text-align: center;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.market-vertical .pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.market-vertical .page-link {
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 25px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 44px;
    text-align: center;
}

.market-vertical .page-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.market-vertical .page-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.market-vertical .page-link.prev,
.market-vertical .page-link.next {
    font-weight: 600;
    padding: 12px 20px;
}

/* Responsive for search results */
@media (max-width: 768px) {
    .search-results-header {
        padding: 30px 20px;
    }
    
    .search-results-header h1 {
        font-size: 1.8rem;
    }
    
    .search-results-info {
        font-size: 1rem;
    }
    
    .market-vertical .filter-section {
        padding: 20px;
    }
    
    .market-vertical .filter-buttons {
        justify-content: center;
    }
    
    .market-vertical .products-section {
        padding: 20px;
    }
    
    .market-vertical .pagination {
        flex-wrap: wrap;
        gap: 4px;
        padding: 6px;
    }
    
    .market-vertical .page-link {
        padding: 10px 14px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .search-results-header h1 {
        font-size: 1.6rem;
    }
    
    .market-vertical .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .market-vertical .no-results {
        padding: 60px 15px;
    }
    
    .market-vertical .no-results-content h3 {
        font-size: 1.5rem;
    }
}

/* ===== OTHER PRODUCTS SECTION ===== */
/* Diğer ürünler bölümü - arama sonuçları altında */

.other-products-section {
    margin-top: 60px;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
}

.other-products-header {
    text-align: center;
    margin-bottom: 40px;
}

.other-products-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #495057;
    margin: 0 0 10px 0;
    position: relative;
}

.other-products-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.other-products-header p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 20px 0 0 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.other-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.other-products-footer {
    text-align: center;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border: 2px solid #667eea;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Other products responsive */
@media (max-width: 768px) {
    .other-products-section {
        margin-top: 40px;
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .other-products-header h2 {
        font-size: 1.6rem;
    }
    
    .other-products-header p {
        font-size: 1rem;
    }
    
    .other-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .btn-secondary {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .other-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .other-products-header h2 {
        font-size: 1.4rem;
    }
    
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
