/* ========================================================================== */
/* Brokerage Detail Page Styles                                               */
/* ========================================================================== */

/* ---------- Detail Hero ---------- */
.detail-hero {
    position: relative;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent),
                linear-gradient(135deg, #0f172a 0%, #312e81 100%);
    color: white;
    padding: 3rem 0 2.5rem;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 50%;
    height: 160%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

.detail-hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.detail-hero-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.detail-hero-icon {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: #a5b4fc;
    flex-shrink: 0;
    overflow: hidden;
}

.detail-hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-hero-text h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: white !important;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.detail-hero-text .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.hero-meta-item i {
    color: #818cf8;
    font-size: 0.8rem;
}

.hero-rating {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
}

/* Hero Apply Button */
.btn-hero-apply {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2rem;
    background: white;
    color: #4f46e5;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

.btn-hero-apply:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: #3730a3;
}

.btn-hero-apply i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.btn-hero-apply:hover i {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .btn-hero-apply {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Detail Layout ---------- */
.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

/* ---------- Detail Cards ---------- */
.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.detail-card:hover {
    box-shadow: var(--shadow-md);
}

.detail-card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-main);
}

.detail-card-title i {
    font-size: 1.25rem;
    color: #6366f1;
}

.detail-card-title h2 {
    font-size: 1.35rem;
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

/* About Text */
.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid var(--border-main);
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 0.9rem 0;
    vertical-align: middle;
}

.info-table td:first-child {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: 40%;
}

.info-table td:last-child {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 0.95rem;
}

/* Fee Highlight Cards */
.fee-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.fee-highlight-card {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.fee-highlight-card:hover {
    transform: translateY(-4px);
}

.fee-highlight-card .fee-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6366f1;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.fee-highlight-card .fee-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #312e81;
}

/* Sidebar Sticky */
.detail-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    text-align: center;
    color: white;
    margin-bottom: 1.5rem;
}

.cta-card h3 {
    color: white;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.cta-card .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: white;
    color: #4f46e5;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-card .btn-cta:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Quick Stats Sidebar */
.quick-stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-main);
}

.quick-stat-row:last-child {
    border-bottom: none;
}

.quick-stat-row .qs-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.quick-stat-row .qs-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
}

/* Pros / Cons */
.pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
}

.pros-list, .cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-list li, .cons-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.pros-list li i {
    color: #10b981;
    font-size: 0.85rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.cons-list li i {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.pros-heading, .cons-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pros-heading { color: #10b981; }
.cons-heading { color: #ef4444; }

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: all 0.25s ease;
}

.back-link:hover {
    color: var(--color-primary-dark);
    transform: translateX(-4px);
}

/* ---------- Dark Mode ---------- */
body.dark-mode .detail-card {
    background: var(--bg-card);
    border-color: var(--border-main);
}

body.dark-mode .info-table td:last-child {
    color: var(--text-heading);
}

body.dark-mode .fee-highlight-card {
    background: rgba(99, 102, 241, 0.1);
    border: 1px dashed rgba(99, 102, 241, 0.4);
}

body.dark-mode .fee-highlight-card .fee-label {
    color: #a5b4fc;
}

body.dark-mode .fee-highlight-card .fee-value {
    color: #f1f5f9;
}

body.dark-mode .quick-stat-row .qs-value {
    color: var(--text-heading);
}

body.dark-mode .cta-card {
    background: linear-gradient(135deg, #4f46e5, #3730a3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .back-link {
    color: #60a5fa;
}

body.dark-mode .back-link:hover {
    color: #93c5fd;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .detail-hero { padding: 2rem 0; }
    
    .detail-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .detail-hero-left {
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
    }

    .detail-hero-text .hero-meta {
        justify-content: center;
    }

    .detail-hero-text h1 {
        font-size: 1.75rem;
    }

    .fee-highlights {
        grid-template-columns: 1fr 1fr;
    }

    .detail-card {
        padding: 1.5rem;
    }
}
