/* GameMarket - Shops CSS */
/* Mağazalar Sayfası için Modern ve Responsive Stiller */

/* CSS Variables - marketplace.css ile uyumlu */
:root {
    --shops-sidebar-width: 300px;
    --shops-content-padding: 2rem;
    --shops-border-radius-lg: 12px;
    --shops-border-radius-xl: 16px;
    --shops-filter-bg: rgba(255, 255, 255, 0.95);
    --shops-filter-border: rgba(0, 0, 0, 0.08);
    --shops-shadow-filter: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shops-transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shops-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shops-card-hover-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] {
    --shops-filter-bg: rgba(30, 30, 30, 0.95);
    --shops-filter-border: rgba(255, 255, 255, 0.08);
    --shops-shadow-filter: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shops-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shops-card-hover-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Ana Container */
.shops-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
}

/* Sayfa Başlığı */
.shops-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #5b21b6 100%);
    border-radius: var(--shops-border-radius-xl);
    color: white;
    box-shadow: var(--shops-shadow-filter);
}

.shops-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.shops-header h1 i {
    font-size: 2.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.create-shop-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: var(--shops-border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--shops-transition-smooth);
    backdrop-filter: blur(10px);
}

.create-shop-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: white;
}

.create-shop-btn i {
    font-size: 1.1rem;
}

/* Arama ve Filtreleme Kartı */
.shops-filters {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--shops-border-radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shops-card-shadow);
    transition: var(--shops-transition-smooth);
}

.shops-filters:hover {
    box-shadow: var(--shops-card-hover-shadow);
    transform: translateY(-2px);
}

.filter-form {
    display: grid;
    grid-template-columns: 2fr 1.5fr auto;
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.filter-input {
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--shops-border-radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--shops-transition-smooth);
    font-family: inherit;
}

.filter-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-input::placeholder {
    color: var(--text-muted);
}

.filter-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--shops-border-radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--shops-transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.5rem;
}

.filter-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.filter-btn i {
    font-size: 1.1rem;
}

/* İstatistikler Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--shops-border-radius-xl);
    padding: 2rem;
    text-align: center;
    transition: var(--shops-transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #5b21b6);
    opacity: 0;
    transition: var(--shops-transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shops-card-hover-shadow);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), #5b21b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* Mağaza Grid */
.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Mağaza Kartı */
.shop-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--shops-border-radius-xl);
    overflow: hidden;
    transition: var(--shops-transition-smooth);
    box-shadow: var(--shops-card-shadow);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.shop-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shops-card-hover-shadow);
    border-color: var(--primary-color);
}

/* Mağaza Banner */
.shop-banner {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.shop-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--shops-transition-smooth);
}

.shop-card:hover .shop-banner img {
    transform: scale(1.05);
}

/* Rozetler */
.shop-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.shop-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.shop-badge.featured {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}

.shop-badge.verified {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

/* Mağaza Logosu */
.shop-logo {
    position: absolute;
    bottom: -30px;
    left: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 3;
    transition: var(--shops-transition-smooth);
}

.shop-card:hover .shop-logo {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Mağaza İçeriği */
.shop-content {
    padding: 2.5rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shop-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.shop-name a {
    color: inherit;
    text-decoration: none;
    transition: var(--shops-transition-smooth);
}

.shop-name a:hover {
    color: var(--primary-color);
}

.shop-owner {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-owner i {
    color: var(--primary-color);
}

.shop-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* İstatistikler Grid */
.shop-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--shops-border-radius-lg);
}

.shop-stat {
    text-align: center;
}

.shop-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.shop-stat-value.sales {
    color: var(--primary-color);
}

.shop-stat-value.rating {
    color: #10b981;
}

.shop-stat-value.listings {
    color: #3b82f6;
}

.shop-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.shop-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.shop-rating i {
    color: #fbbf24;
}

/* Kazanç Bilgisi */
.shop-earnings {
    text-align: center;
    margin-bottom: 1.5rem;
}

.earnings-badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.earnings-badge i {
    color: #fbbf24;
}

/* Mağaza Footer */
.shop-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.shop-view-btn {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--shops-border-radius-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--shops-transition-smooth);
    border: 2px solid var(--primary-color);
}

.shop-view-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    color: white;
}

.shop-view-btn i {
    font-size: 1.1rem;
}

/* Boş Sonuç */
.no-shops {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-shops i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-shops h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.no-shops p {
    font-size: 1rem;
    margin: 0;
}

/* Sayfalama */
.shops-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.page-item {
    list-style: none;
}

.page-link {
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--shops-border-radius-lg);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--shops-transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
}

.page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .shops-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .shops-container {
        padding: 1.5rem 1rem;
    }
    
    .filter-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .shops-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .shops-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 1.5rem;
    }
    
    .shops-header h1 {
        font-size: 2rem;
    }
    
    .create-shop-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .shops-filters {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .shops-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .shop-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .shop-content {
        padding: 2rem 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .shops-container {
        padding: 1rem 0.5rem;
    }
    
    .shops-header {
        padding: 1rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .shops-header h1 {
        font-size: 1.75rem;
    }
    
    .shops-filters {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        padding: 1rem;
    }
    
    .stats-grid {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .shop-content {
        padding: 1.5rem 0.75rem 0.75rem;
    }
    
    .shop-footer {
        padding: 1rem;
    }
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shop-card {
    animation: fadeInUp 0.6s ease-out;
}

.shop-card:nth-child(1) { animation-delay: 0.1s; }
.shop-card:nth-child(2) { animation-delay: 0.2s; }
.shop-card:nth-child(3) { animation-delay: 0.3s; }
.shop-card:nth-child(4) { animation-delay: 0.4s; }
.shop-card:nth-child(5) { animation-delay: 0.5s; }
.shop-card:nth-child(6) { animation-delay: 0.6s; }

/* Dark Mode Improvements */
[data-theme="dark"] .shop-card {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .shop-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .shop-badges .shop-badge {
    backdrop-filter: blur(15px);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Gradient Overlays */
.shop-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

/* Loading States */
.shops-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.shops-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
} 