/* GameMarket - Listing Detail CSS */
/* Ürün Detay Sayfası için Modern ve Responsive Stiller */

/* CSS Variables */
:root {
    --listing-image-height: 400px;
    --thumbnail-size: 80px;
    --info-width: 480px;
    --content-gap: 2rem;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.15);
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

[data-theme="dark"] {
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Container */
.listing-detail {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb li {
    color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.breadcrumb a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.breadcrumb .active {
    color: var(--text-primary);
    font-weight: 500;
}

/* Ana İçerik */
.listing-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--content-gap);
    margin-bottom: 3rem;
}

/* Sol Taraf - Resimler */
.listing-images {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.main-image {
    position: relative;
    height: var(--listing-image-height);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    margin-bottom: 1rem;
    background: var(--bg-card);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.main-image:hover img {
    transform: scale(1.05);
}

.placeholder-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
}

.placeholder-image i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.placeholder-image p {
    font-size: 1.1rem;
    margin: 0;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--thumbnail-size), 1fr));
    gap: 0.75rem;
}

.thumbnail {
    width: 100%;
    height: var(--thumbnail-size);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    object-fit: cover;
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

/* Sağ Taraf - Bilgiler */
.listing-info {
    padding: 1rem 0;
}

.listing-header {
    margin-bottom: 2rem;
}

.badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.game-badge,
.category-badge,
.featured-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: var(--shadow-soft);
}

.game-badge {
    background: var(--gradient-primary);
    color: white;
}

.category-badge {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.featured-badge {
    background: var(--gradient-warning);
    color: white;
}

.listing-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.listing-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat i {
    color: var(--primary-color);
}

/* Fiyat Bölümü */
.price-section {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success-color);
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.original-price {
    font-size: 1.5rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount {
    background: var(--gradient-warning);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.commission-info {
    padding: 1rem;
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary-color);
}

.commission-info small {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.commission-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Aksiyon Butonları */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.own-listing {
    padding: 1rem;
    background: rgba(var(--warning-color-rgb), 0.1);
    border: 2px solid var(--warning-color);
    border-radius: var(--border-radius-lg);
    color: var(--warning-color);
    text-align: center;
    font-weight: 600;
}

/* Satıcı Bilgileri */
.seller-info {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

.seller-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.seller-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.seller-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.seller-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verified {
    color: var(--success-color);
}

.seller-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.stars i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stars i.active {
    color: #fbbf24;
}

.seller-stats {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.seller-stats i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.seller-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* Açıklama */
.listing-description {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

.listing-description h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.description-content {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Ürün Detayları */
.product-details {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.product-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.detail-label {
    font-weight: 600;
    color: var(--text-primary);
}

.detail-value {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .listing-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .listing-images {
        position: static;
    }
    
    .seller-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .listing-detail {
        padding: 1rem;
    }
    
    .listing-title {
        font-size: 2rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .listing-stats {
        gap: 1rem;
    }
    
    .price-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .badges {
        gap: 0.5rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
}

@media (max-width: 480px) {
    .listing-detail {
        padding: 0.5rem;
    }
    
    .listing-title {
        font-size: 1.75rem;
    }
    
    .current-price {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 1.125rem;
        font-size: 1rem;
    }
    
    .seller-info,
    .listing-description,
    .product-details,
    .price-section {
        padding: 1.5rem;
    }
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.listing-detail > * {
    animation: fadeInUp 0.6s ease-out;
}

.listing-detail > *:nth-child(1) { animation-delay: 0.1s; }
.listing-detail > *:nth-child(2) { animation-delay: 0.2s; }
.listing-detail > *:nth-child(3) { animation-delay: 0.3s; }
.listing-detail > *:nth-child(4) { animation-delay: 0.4s; }

/* Dark Theme Uyarlamaları */
[data-theme="dark"] .game-badge {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

[data-theme="dark"] .featured-badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border-color: #fbbf24;
}

[data-theme="dark"] .btn-outline {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Loading States */
.loading-placeholder {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-card) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Hover Effects */
.detail-item:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.seller-card:hover {
    transform: translateY(-2px);
}

/* Focus States */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.thumbnail:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
} 