/* ============================================
   CORPORATE LISTING DETAIL PAGE STYLES
   ============================================ */

/* Listing Detail Header */
.listing-detail-header {
    background: linear-gradient(135deg, #00BCD4 0%, #0891B2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    color: white;
    position: relative;
    overflow: hidden;
}

.listing-detail-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.listing-breadcrumb {
    margin-bottom: 20px;
}

.listing-breadcrumb .breadcrumb {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 0;
}

.listing-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.listing-breadcrumb .breadcrumb-item.active {
    color: white;
}

.listing-title-section {
    position: relative;
    z-index: 1;
}

.listing-category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.listing-title-main {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
    line-height: 1.2;
}

.listing-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.9375rem;
}

.listing-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.listing-meta-item i {
    font-size: 1rem;
    opacity: 0.8;
}

/* Listing Image */
.listing-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    background: var(--dark-lighter);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

body.light-theme .listing-image-wrapper {
    background: #F8FAFC;
}

.listing-image-wrapper img {
    width: 100%;
    max-width: 800px;
    max-height: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.listing-image-wrapper:hover img {
    transform: scale(1.02);
}

/* Listing Content Card */
.listing-content-card {
    background: var(--dark-lighter);
    border: 1px solid rgba(0, 188, 212, 0.1);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
}

body.light-theme .listing-content-card {
    background: white;
    border-color: rgba(0, 0, 0, 0.08);
}

.listing-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 188, 212, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

body.light-theme .listing-section-title {
    color: #0F172A;
    border-color: rgba(0, 188, 212, 0.3);
}

.listing-section-title i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.listing-description {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

body.light-theme .listing-description {
    color: #0F172A;
}

/* Seller Info Card */
.seller-info-card {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, rgba(8, 145, 178, 0.1) 100%);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}

body.light-theme .seller-info-card {
    background: #E0F7FA;
    border-color: rgba(0, 188, 212, 0.3);
}

.seller-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #00BCD4 0%, #0891B2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin-right: 16px;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.seller-info-content h6 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

body.light-theme .seller-info-content h6 {
    color: #0F172A;
}

.seller-info-content small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

body.light-theme .seller-info-content small {
    color: #64748B;
}

/* Purchase Card */
.purchase-card-sticky {
    position: sticky;
    top: 20px;
    z-index: 10;
    transition: all 0.3s ease;
}

.purchase-card-corporate {
    background: var(--dark-lighter);
    border: 1px solid rgba(0, 188, 212, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.light-theme .purchase-card-corporate {
    background: white;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.purchase-card-header {
    background: linear-gradient(135deg, #00BCD4 0%, #0891B2 100%);
    padding: 24px;
    color: white;
}

.purchase-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.purchase-card-title i {
    color: white !important;
    opacity: 1 !important;
}

.purchase-card-body {
    padding: 24px;
}

.price-display {
    background: rgba(0, 188, 212, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

body.light-theme .price-display {
    background: #E0F7FA;
}

.price-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

body.light-theme .price-label {
    color: #64748B;
}

.price-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.purchase-alert {
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border: none;
}

.purchase-alert i {
    margin-right: 8px;
}

.btn-purchase-primary {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #00BCD4 0%, #0891B2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.btn-purchase-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 188, 212, 0.4);
    color: white;
}

.btn-purchase-primary i {
    color: white !important;
    opacity: 1 !important;
}

.purchase-security-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

body.light-theme .purchase-security-note {
    color: #64748B;
}

.purchase-security-note i {
    color: var(--primary-color);
}

.balance-info {
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
    border-left: 3px solid #10B981;
}

body.light-theme .balance-info {
    background: #D1FAE5;
}

.balance-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.875rem;
}

.balance-info-item:last-child {
    margin-bottom: 0;
}

.balance-info-label {
    color: var(--text-secondary);
}

body.light-theme .balance-info-label {
    color: #64748B;
}

.balance-info-value {
    font-weight: 600;
    color: var(--text-primary);
}

body.light-theme .balance-info-value {
    color: #0F172A;
}

/* Back Button */
.btn-back-corporate {
    background: var(--dark-lighter);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-bottom: 24px;
}

body.light-theme .btn-back-corporate {
    background: white;
    border-color: rgba(0, 0, 0, 0.1);
    color: #0F172A;
}

.btn-back-corporate:hover {
    background: rgba(0, 188, 212, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(-4px);
}

body.light-theme .btn-back-corporate:hover {
    background: #E0F7FA;
}

.btn-back-corporate i {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 991px) {
    .purchase-card-sticky {
        position: relative;
        top: 0;
        margin-top: 32px;
    }
    
    .listing-detail-header {
        padding: 24px 20px;
    }
    
    .listing-title-main {
        font-size: 1.75rem;
    }
    
    .listing-content-card {
        padding: 24px 20px;
    }
    
    .listing-meta-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .listing-image-wrapper img {
        max-width: 100%;
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .listing-title-main {
        font-size: 1.5rem;
    }
    
    .listing-section-title {
        font-size: 1.25rem;
    }
    
    .purchase-card-header {
        padding: 20px;
    }
    
    .purchase-card-body {
        padding: 20px;
    }
    
    .price-value {
        font-size: 1.75rem;
    }
    
    .listing-image-wrapper img {
        max-width: 100%;
        max-height: 400px;
    }
}

