/* GameMarket - Marketplace CSS - Düzeltilmiş Sürüm */
/* Oyuncu Pazarı Sayfası için Modern ve Responsive Stiller */

/* CSS Variables */
:root {
    --sidebar-width: 300px;
    --sidebar-width-mobile: 100%;
    --content-padding: 2rem;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --filter-bg: rgba(255, 255, 255, 0.95);
    --filter-border: rgba(0, 0, 0, 0.08);
    --shadow-filter: 0 8px 32px rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --filter-bg: rgba(30, 30, 30, 0.95);
    --filter-border: rgba(255, 255, 255, 0.08);
    --shadow-filter: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Ana Container - Responsive Grid Layout */
.marketplace-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
}

/* Filtreleme Sidebar - Scroll ile düzeltilmiş */
.filter-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: fit-content;
    max-height: calc(100vh - 140px);
    position: sticky;
    top: 120px;
    overflow: hidden;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #5b21b6 100%);
    color: white;
    flex-shrink: 0;
}

.filter-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-header h3 i {
    font-size: 1.1rem;
}

.filter-reset {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-reset:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Filtre Formu - Scroll Container */
#filter-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

#filter-form::-webkit-scrollbar {
    width: 6px;
}

#filter-form::-webkit-scrollbar-track {
    background: transparent;
}

#filter-form::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

#filter-form::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.filter-group label i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

/* Modern Arama Input */
.filter-sidebar .search-input {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-sidebar .search-input input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    margin-left: -35px;
    margin-right: 35px;
}

.filter-sidebar .search-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.filter-sidebar .search-input input::placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.filter-sidebar .search-btn {
    position: absolute;
    right: 0.5rem;
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.filter-sidebar .search-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.filter-sidebar .search-btn:active {
    transform: scale(0.98);
}

/* Modern Select Inputs */
.filter-group select {
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.filter-group select:hover {
    border-color: var(--primary-color);
}

/* Geliştirilmiş Fiyat Aralığı - Sadece Input Kutular */
.price-range {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.price-inputs input {
    flex: 1;
    min-width: 0;
    padding: 0.875rem 0.75rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    text-align: center;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.price-inputs input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.price-inputs span {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Slider kaldırıldı - sadece input kullanılıyor */

.price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.price-display span {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Filtre Uygula Butonu */
.filter-apply {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5b21b6 100%);
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-shrink: 0;
}

.filter-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.filter-apply:active {
    transform: translateY(0);
}

/* Ana İçerik Alanı */
.marketplace-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Marketplace Header */
.marketplace-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.header-info h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-info h1 i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.results-count {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

.results-count .count {
    font-weight: 600;
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* View Toggle Buttons */
.view-toggle {
    display: flex;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 0.25rem;
    border: 1px solid var(--border-color);
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.view-btn:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.view-btn.active {
    color: white;
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
    align-items: center;
    gap: 0.75rem;
}

.mobile-filter-toggle:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.listings-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.listings-grid.list-view .listing-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
}

.listings-grid.list-view .card-image {
    width: 200px;
    height: 150px;
}

.listings-grid.list-view .card-content {
    padding: 0;
}

/* Listing Cards */
.listing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

/* Card Badges */
.card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.game-badge,
.category-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-badge {
    background: rgba(99, 102, 241, 0.9);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.game-badge img {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.category-badge {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

/* Card Actions */
.card-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.listing-card:hover .card-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.action-btn.favorite.active {
    background: #ef4444;
    color: white;
}

/* Card Content */
.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.seller-info,
.listing-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.price {
    display: flex;
    align-items: baseline;
}

.price .amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.card-buttons {
    display: flex;
    gap: 0.75rem;
}

.message-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    gap: 0.75rem;
}

.page-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Loading Animation */
.listings-grid.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.listings-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 10;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Filter Overlay for Mobile */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    backdrop-filter: blur(4px);
}

.filter-overlay.active {
    display: block;
}

/* Modal Styles - Improved Design */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #5b21b6 100%);
    color: white;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-header h3 i {
    font-size: 1.2rem;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

.modal-body .form-group {
    margin-bottom: 1.5rem;
}

.modal-body .form-group:last-child {
    margin-bottom: 0;
}

.modal-body label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.modal-body input,
.modal-body textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    resize: vertical;
}

.modal-body input:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.modal-body textarea {
    min-height: 120px;
    line-height: 1.5;
}

.modal-body input::placeholder,
.modal-body textarea::placeholder {
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.form-actions .btn {
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
    justify-content: center;
}

.form-actions .btn-outline {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.form-actions .btn-outline:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
}

.form-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5b21b6 100%);
    color: white;
    border-color: var(--primary-color);
}

.form-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.form-actions .btn-primary:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .marketplace-container {
        grid-template-columns: 280px 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .filter-sidebar {
        width: 280px;
    }
    
    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .marketplace-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        z-index: 100;
        overflow-y: auto;
        transition: left 0.3s ease;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .filter-sidebar.mobile-open {
        left: 0;
    }
    
    .marketplace-content {
        width: 100%;
    }
    
    .mobile-filter-toggle {
        display: flex;
    }
    
    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .marketplace-container {
        padding: 0.75rem;
    }
    
    .marketplace-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .header-actions {
        justify-content: space-between;
    }
    
    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .listing-card {
        height: auto;
        min-height: 280px;
    }

    .card-image {
        height: 120px;
    }

    .card-content {
        padding: 0.75rem;
    }

    .card-title {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-description {
        font-size: 0.8rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 0.5rem;
    }

    .card-meta {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .price .amount {
        font-size: 1rem;
        font-weight: 700;
    }

    .card-buttons {
        gap: 0.5rem;
    }

    .card-buttons .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .message-btn {
        width: 32px;
        height: 32px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .message-btn i {
        font-size: 0.75rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-controls {
        justify-content: center;
    }
    
    .filter-sidebar {
        width: 100%;
        left: -100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
    
    .price-inputs {
        flex-direction: column;
        gap: 1rem;
    }
    
    .price-inputs span {
        display: none;
    }
}

@media (max-width: 480px) {
    .marketplace-container {
        padding: 0.5rem;
    }
    
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .listing-card {
        min-height: 260px;
    }

    .card-image {
        height: 100px;
    }

    .card-content {
        padding: 0.6rem;
    }

    .card-title {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    .card-description {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }

    .card-meta {
        font-size: 0.7rem;
    }

    .price .amount {
        font-size: 0.95rem;
    }
    
    .card-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .card-buttons .btn {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    .header-info h1 {
        font-size: 1.5rem;
    }
    
    #filter-form {
        padding: 1.25rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Çok küçük mobil ekranlar için (iPhone SE, küçük Android'ler) */
@media (max-width: 360px) {
    .marketplace-container {
        padding: 0.25rem;
    }
    
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }

    .listing-card {
        min-height: 240px;
        border-radius: 12px;
    }

    .card-image {
        height: 90px;
    }

    .card-content {
        padding: 0.5rem;
    }

    .card-title {
        font-size: 0.8rem;
        line-height: 1.2;
        margin-bottom: 0.4rem;
    }

    .card-description {
        font-size: 0.7rem;
        -webkit-line-clamp: 1;
        margin-bottom: 0.4rem;
    }

    .card-meta {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }

    .price .amount {
        font-size: 0.9rem;
    }

    .card-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }

    .card-buttons .btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }

    .message-btn {
        width: 28px;
        height: 28px;
    }

    .message-btn i {
        font-size: 0.7rem;
    }

    .marketplace-header {
        padding: 0.5rem 0;
    }

    .header-info h1 {
        font-size: 1.25rem;
    }

    .results-count {
        font-size: 0.8rem;
    }
}

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

/* Hover Effects */
.listing-card:hover .card-title a {
    transform: translateX(2px);
}

.listing-card:hover .price .amount {
    transform: scale(1.05);
}

/* Focus States */
.filter-sidebar:focus-within {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Dark Theme Adjustments */
@media (prefers-color-scheme: dark) {
    .card-badges {
        backdrop-filter: blur(12px);
    }
    
    .action-btn {
        background: rgba(30, 30, 30, 0.9);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Notification System - Modern Design */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 1.25rem 1.75rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transform: translateX(400px) scale(0.9);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    min-width: 320px;
    max-width: 420px;
    overflow: hidden;
    position: relative;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.6;
}

.notification.show {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-content i {
    font-size: 1.4rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(var(--primary-color-rgb), 0.1);
    flex-shrink: 0;
}

.notification-content span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.5;
}

.notification-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.notification-success::before {
    background: linear-gradient(90deg, #10b981, #059669, #10b981);
}

.notification-success .notification-content i {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.notification-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-color: rgba(239, 68, 68, 0.2);
}

.notification-error::before {
    background: linear-gradient(90deg, #ef4444, #dc2626, #ef4444);
}

.notification-error .notification-content i {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.notification-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(217, 119, 6, 0.05) 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

.notification-warning::before {
    background: linear-gradient(90deg, #f59e0b, #d97706, #f59e0b);
}

.notification-warning .notification-content i {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.notification-info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

.notification-info::before {
    background: linear-gradient(90deg, #6366f1, #4f46e5, #6366f1);
}

.notification-info .notification-content i {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

/* Auto-hide Animation */
.notification::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    animation: notificationProgress 4s linear;
    opacity: 0.3;
}

@keyframes notificationProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        top: 10px;
        transform: translateY(-100px) scale(0.9);
        padding: 1rem 1.25rem;
    }
    
    .notification.show {
        transform: translateY(0) scale(1);
    }
    
    .notification-content {
        gap: 0.75rem;
    }
    
    .notification-content i {
        font-size: 1.2rem;
        padding: 0.6rem;
    }
}

/* Dark Theme Enhancements */
[data-theme="dark"] .notification {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(25px);
}

[data-theme="dark"] .notification-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
}

[data-theme="dark"] .notification-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
}

[data-theme="dark"] .notification-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
}

[data-theme="dark"] .notification-info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
} 