@import url('theme.css');

/* Hero Banner Section */
.buy-section {
    background: linear-gradient(135deg, #0e2a4d 0%, #1a3a5c 100%);
    color: #ffffff;
    padding: 50px 20px 40px;
    text-align: center;
}

.buy-section-inner {
    max-width: 900px;
    margin: 0 auto;
}

.buy-section-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #ffffff !important;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
}

.buy-section-badge i {
    margin-right: 6px;
    color: #ffffff !important;
}

.buy-section h1 {
    font-size: 2em;
    margin: 0 0 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff !important;
}

.buy-section-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.buy-section-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.9) !important;
}

.buy-section-meta span i {
    color: rgba(255,255,255,0.7) !important;
}

/* Breadcrumb */
.offer-breadcrumb {
    max-width: 1400px;
    margin: 16px auto 0;
    padding: 0 20px;
    font-size: 13px;
    color: #999;
}

.offer-breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

.offer-breadcrumb a:hover {
    text-decoration: underline;
}

/* Layout */
.details-section {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 20px auto 0;
    padding: 20px;
}

/* Left Section (Details) */
.details-left {
    flex: 3;
    padding: 35px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.details-left h2 {
    font-size: 20px;
    color: var(--color-navy);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

/* Info Grid */
.offer-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

.offer-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f8f9fb;
    border-radius: 10px;
    border: 1px solid #eef0f4;
    transition: border-color 0.2s;
}

.offer-info-item:hover {
    border-color: #0891b2;
}

.offer-info-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: linear-gradient(135deg, #0891b2, #f06924);
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.offer-info-icon i,
.offer-info-icon .fi {
    color: #ffffff !important;
    font-size: 16px;
}

.offer-info-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999999;
    font-weight: 600;
    margin-bottom: 3px;
}

.offer-info-value {
    display: block;
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}

.offer-info-value a,
a.login-to-view {
    color: #0891b2 !important;
    font-size: 13px;
    font-weight: 600;
}

/* Details section */
.details-left h3 {
    font-size: 18px;
    margin-top: 10px;
    color: var(--color-navy);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.offer-description {
    font-size: 15px;
    color: #64748b;
    line-height: 1.8;
    padding: 16px 20px;
    background: #fafbfc;
    border-radius: 8px;
    border-left: 4px solid #f06924;
    min-height: 40px;
}

/* Buttons */
.details-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.details-buttons a.contact-buyer,
a.contact-buyer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    background-color: #ffffff;
    color: #0891b2 !important;
    border: 2px solid #0891b2;
    border-radius: 9999px;
    transition: all 0.3s;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    font-size: 14px;
}

.details-buttons a.contact-buyer:hover,
a.contact-buyer:hover {
    background-color: #0891b2;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(8, 145, 178, 0.25);
}

.details-buttons a.submit-request,
a.submit-request {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f06924;
    border: 2px solid #f06924;
    color: #ffffff !important;
    padding: 14px 30px;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none !important;
    font-size: 14px;
}

.details-buttons a.submit-request:hover,
a.submit-request:hover {
    background-color: #d85a1b;
    border-color: #d85a1b;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 105, 36, 0.35);
}

/* Right Section (Sidebar) */
.details-right {
    flex: 1;
    padding: 30px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    align-self: flex-start;
    box-shadow: var(--shadow-sm);
}

.details-right h3 {
    font-size: 17px;
    color: var(--color-navy);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary);
    font-weight: 600;
}

.details-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-right li {
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
}

.details-right li:last-child {
    border-bottom: none;
}

.details-right li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 14px;
    padding: 12px 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.details-right li a i {
    color: #f06924;
    width: 16px;
    text-align: center;
    font-size: 13px;
}

.details-right li a:hover {
    color: #f06924 !important;
    padding-left: 14px;
    background: #fef6f0;
    border-radius: 6px;
}

/* Related Buy Offers */
.related-buy-offers {
    padding: 40px;
    background: var(--bg-body);
    max-width: 1400px;
    margin: 20px auto 0;
}

.related-buy-offers h2 {
    font-size: 22px;
    color: var(--color-navy);
    margin-bottom: 25px;
    border-left: 4px solid var(--color-primary);
    padding-left: 15px;
    font-weight: 600;
}

/* Single Buy Offer Card */
.buy-offer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    margin-bottom: 16px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.buy-offer:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.buy-offer-left {
    width: calc(100% - 200px);
    padding-right: 20px;
    border-right: 1px solid var(--border-color);
}

.buy-offer-left h3 {
    font-size: 17px;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.buy-offer-left h3:hover {
    color: var(--color-primary);
}

.buy-offer-left p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 4px 0;
}

.buy-offer-left strong {
    color: var(--color-text-main);
}

.buy-offer-right {
    width: 200px;
    text-align: center;
}

/* CTA */
.cta {
    margin-top: 30px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #fef6f0, #fff5ec);
    border: 1px solid #fde0c8;
    border-radius: var(--radius-lg);
    text-align: center;
}

.cta p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin: 0;
}

.cta-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.cta-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .offer-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .buy-section h1 {
        font-size: 1.5em;
    }

    .buy-section-meta {
        flex-direction: column;
        gap: 8px;
    }

    .details-section {
        flex-direction: column;
    }

    .details-left {
        padding: 20px;
    }

    .details-buttons {
        flex-direction: column;
    }

    .contact-buyer,
    .submit-request {
        text-align: center;
        justify-content: center;
    }

    .buy-offer {
        flex-direction: column;
    }

    .buy-offer-left {
        width: 100%;
        border-right: none;
        padding-right: 0;
        margin-bottom: 20px;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 20px;
    }

    .buy-offer-right {
        width: 100%;
    }
}
