/* ================================================
   MARKETPLACE SHOW - PAGE DE DÉTAIL D'ANNONCE
   ================================================ */

.marketplace-show-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* BREADCRUMB */
.marketplace-breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #b4b9c8;
}

.marketplace-breadcrumb a {
    color: #5865f2;
    text-decoration: none;
    transition: color 0.3s;
}

.marketplace-breadcrumb a:hover {
    color: #7289da;
    text-decoration: underline;
}

.marketplace-breadcrumb span {
    color: #ffffff;
    font-weight: 600;
}

/* LAYOUT PRINCIPAL */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-top: 2rem;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* CARDS */
.card {
    background: #252837;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.section-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 700;
}

/* HEADER ANNONCE */
.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    gap: 2rem;
}

.header-left {
    flex: 1;
}

.listing-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
}

/* BADGES */
.badges-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-transaction {
    background: rgba(88, 101, 242, 0.2);
    color: #5865f2;
}

.badge-category {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* PRIX */
.price-section {
    text-align: right;
    min-width: 200px;
}

.price-main {
    font-size: 2rem;
    color: #5865f2;
    font-weight: 700;
}

.price-unit {
    color: #b4b9c8;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.price-negotiable {
    color: #22c55e;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* INFOS RAPIDES */
.quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    color: #b4b9c8;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 600;
    color: #ffffff;
}

/* GALERIE & DESCRIPTION */
.gallery-description-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* GALERIE */
.gallery-section {
    display: flex;
    flex-direction: column;
}

.main-image {
    width: 100%;
    height: 350px;
    background: #1a1d29;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 2px solid rgba(88, 101, 242, 0.3);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-image-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #1a1d29 0%, #252837 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(88, 101, 242, 0.3);
    margin-bottom: 1rem;
}

.placeholder-icon {
    font-size: 3rem;
    color: #5865f2;
    margin-bottom: 1rem;
}

.placeholder-text {
    color: #b4b9c8;
    font-size: 0.9rem;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 1;
    background: #1a1d29;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(88, 101, 242, 0.3);
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: #5865f2;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #5865f2;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* DESCRIPTION */
.description-section {
    display: flex;
    flex-direction: column;
}

.description-content {
    line-height: 1.8;
    color: #e5e7eb;
    white-space: pre-wrap;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 1rem;
}

/* Custom Scrollbar */
.description-content::-webkit-scrollbar {
    width: 6px;
}

.description-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.description-content::-webkit-scrollbar-thumb {
    background: #5865f2;
    border-radius: 10px;
}

.description-content::-webkit-scrollbar-thumb:hover {
    background: #7289da;
}

/* RÉDUCTIONS */
.pricing-tiers {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.pricing-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(88, 101, 242, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(88, 101, 242, 0.2);
    transition: all 0.3s ease;
}

.pricing-tier:hover {
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.4);
}

.tier-range {
    font-weight: 600;
    color: #ffffff;
}

.tier-pricing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tier-price {
    color: #5865f2;
    font-weight: 700;
}

.tier-discount {
    color: #22c55e;
    font-weight: 700;
}

.savings-highlight {
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.savings-title {
    color: #22c55e;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.savings-text {
    color: #b4b9c8;
    font-size: 0.9rem;
}

/* LOCALISATION */
.location-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.location-item {
    display: flex;
    flex-direction: column;
}

.location-label {
    color: #b4b9c8;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.location-value {
    font-weight: 600;
    color: #ffffff;
}

/* VIDEO */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #1a1d29;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* SIDEBAR */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.seller-card,
.info-card {
    background: #252837;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.sidebar-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 700;
}

/* VENDEUR */
.seller-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.seller-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #5865f2;
    background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    overflow: hidden;
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-info {
    flex: 1;
}

.seller-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.seller-since {
    color: #b4b9c8;
    font-size: 0.85rem;
}

/* RÉPUTATION */
.seller-reputation {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(88, 101, 242, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(88, 101, 242, 0.2);
}

.reputation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.reputation-label {
    color: #b4b9c8;
    font-size: 0.9rem;
}

.reputation-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    color: #fbbf24;
    font-size: 1.1rem;
}

.rating-percent {
    color: #22c55e;
    font-weight: 700;
    font-size: 1.1rem;
}

.reputation-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5865f2;
}

.stat-positive {
    color: #22c55e;
}

.stat-neutral {
    color: #fbbf24;
}

.stat-label {
    color: #b4b9c8;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* STATISTIQUES */
.seller-stats {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.stats-title {
    color: #22c55e;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.stats-row {
    display: flex;
    justify-content: space-between;
}

.stats-label {
    color: #b4b9c8;
}

.stats-value {
    color: #ffffff;
    font-weight: 600;
}

.stats-success {
    color: #22c55e;
}

/* BOUTONS */
.btn {
    display: block;
    width: 100%;
    padding: 0.875rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    margin-bottom: 0.5rem;
}

.btn-primary {
    background: #5865f2;
    color: white;
}

.btn-primary:hover {
    background: #7289da;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.btn-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.btn-success:hover {
    background: rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

.btn-edit {
    background: #5865f2;
    color: white;
}

.btn-edit:hover {
    background: #7289da;
    transform: translateY(-2px);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* INFO CARD */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-row-label {
    color: #b4b9c8;
}

.info-row-value {
    font-weight: 600;
    color: #ffffff;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .gallery-description-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .marketplace-show-container {
        padding: 1rem;
    }
    
    .listing-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .price-section {
        text-align: left;
        width: 100%;
    }
    
    .quick-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thumbnails-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .listing-title {
        font-size: 1.5rem;
    }
    
    .price-main {
        font-size: 1.5rem;
    }
    
    .quick-info {
        grid-template-columns: 1fr;
    }
    
    .location-info {
        flex-direction: column;
        gap: 1rem;
    }
}

