/* Lender Detail Pages - Shared Styles */

.lender-hero {
    background: linear-gradient(135deg, var(--surface-dark) 0%, #2d2926 50%, var(--surface-darker) 100%);
    position: relative;
    overflow: hidden;
    padding: var(--space-16) 0 var(--space-12);
}

.lender-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(251, 191, 36, 0.12), transparent);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--fg-muted);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--amber-400); text-decoration: none; }
.breadcrumb a:hover { color: var(--amber-300); }

.lender-header {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.lender-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    background: white;
    object-fit: contain;
    padding: 8px;
}

.lender-logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--fg-tertiary);
}

.lender-info h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-2);
}

.lender-type {
    font-size: var(--text-lg);
    color: #a8a29e;
}

.quick-stats {
    display: flex;
    gap: var(--space-8);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.stat {
    text-align: left;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--amber-400);
}

.stat-label {
    font-size: var(--text-sm);
    color: #a8a29e;
}

/* Main content */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-12);
    padding: var(--space-16) 0;
}

@media (max-width: 1024px) {
    .content-wrapper { grid-template-columns: 1fr; }
}

.main-content { max-width: 720px; }

.main-content h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--fg-primary);
    margin-top: var(--space-12);
    margin-bottom: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-default);
}

.main-content h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

.main-content h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--fg-primary);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
}

.main-content p {
    font-size: var(--text-base);
    color: var(--fg-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-5);
}

.main-content ul, .main-content ol {
    margin-bottom: var(--space-6);
    padding-left: var(--space-6);
}

.main-content li {
    font-size: var(--text-base);
    color: var(--fg-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-3);
}

.main-content strong { color: var(--fg-primary); font-weight: 600; }

/* Contact card */
.contact-card {
    background: linear-gradient(135deg, var(--amber-50) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 2px solid var(--amber-200);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin: var(--space-6) 0;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 700;
    color: var(--amber-700);
    margin-bottom: var(--space-4);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.contact-item:last-child { margin-bottom: 0; }

.contact-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: var(--radius-md);
    background: var(--amber-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i { color: var(--amber-600); font-size: 0.875rem; }

.contact-text {
    flex: 1;
}

.contact-label {
    font-size: var(--text-xs);
    color: var(--fg-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-value {
    font-weight: 600;
    color: var(--fg-primary);
}

/* Steps */
.steps-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0;
}

.step-item {
    counter-increment: step;
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--border-default);
}

.step-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    color: white;
    font-family: var(--font-mono);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content h4 {
    font-weight: 600;
    color: var(--fg-primary);
    margin-bottom: var(--space-2);
}

.step-content p {
    font-size: var(--text-sm);
    color: var(--fg-secondary);
    margin: 0;
}

/* Documents checklist */
.doc-checklist {
    background: var(--surface-base);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin: var(--space-6) 0;
}

.doc-header {
    font-weight: 700;
    color: var(--fg-primary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.doc-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.doc-item:last-child { border-bottom: none; }

.doc-check {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: var(--success-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-check i { color: var(--success-600); font-size: 0.75rem; }

.doc-text {
    font-size: var(--text-sm);
    color: var(--fg-secondary);
}

.doc-text strong { color: var(--fg-primary); }

/* Sidebar */
.sidebar {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-6));
    align-self: start;
}

@media (max-width: 1024px) {
    .sidebar { position: relative; top: 0; }
}

.sidebar-card {
    background: var(--surface-base);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
}

.sidebar-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--fg-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-item { margin-bottom: var(--space-2); }
.toc-link {
    display: block;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    color: var(--fg-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    border-left: 2px solid transparent;
    transition: all 0.2s;
}
.toc-link:hover { background: var(--surface-subtle); color: var(--fg-primary); }
.toc-link.active { background: var(--amber-50); color: var(--amber-700); border-left-color: var(--amber-500); }

.other-lenders { list-style: none; padding: 0; margin: 0; }
.other-lender {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: background 0.2s;
    margin-bottom: var(--space-2);
}
.other-lender:hover { background: var(--surface-subtle); }
.other-lender-logo {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: var(--radius-md);
    background: var(--surface-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--fg-tertiary);
}
.other-lender-logo-img {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: var(--radius-md);
    background: white;
    object-fit: contain;
    padding: 4px;
}
.other-lender-name { font-size: var(--text-sm); font-weight: 600; color: var(--fg-primary); }

.cta-card {
    background: linear-gradient(135deg, var(--surface-dark) 0%, #2d2926 100%);
    border: none;
    color: white;
}
.cta-card .sidebar-title { color: var(--amber-400); }
.cta-card p { font-size: var(--text-sm); color: #a8a29e; margin-bottom: var(--space-4); }

/* Tips box */
.tips-box {
    background: var(--surface-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin: var(--space-8) 0;
}

.tips-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 700;
    color: var(--fg-primary);
    margin-bottom: var(--space-4);
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--fg-secondary);
    margin-bottom: var(--space-3);
}

.tips-list li:last-child { margin-bottom: 0; }
.tips-list li i { color: var(--amber-500); margin-top: 3px; }

.bottom-cta {
    background: linear-gradient(135deg, var(--amber-50) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 2px solid var(--amber-200);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    margin-top: var(--space-12);
    text-align: center;
}
.bottom-cta h3 { font-size: var(--text-2xl); font-weight: 700; margin-bottom: var(--space-3); }
.bottom-cta p { max-width: 500px; margin: 0 auto var(--space-6); }

/* Related guides list */
.related-guides-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-guides-list li {
    margin-bottom: var(--space-2);
}

.related-guides-list a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    color: var(--fg-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.related-guides-list a:hover {
    background: var(--surface-subtle);
    color: var(--fg-primary);
}

.related-guides-list i {
    color: var(--amber-500);
}

/* Highlight box */
.highlight-box {
    background: linear-gradient(135deg, var(--success-50) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 2px solid var(--success-500);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin: var(--space-6) 0;
}

.highlight-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 700;
    color: var(--success-700);
    margin-bottom: var(--space-3);
}
