/* VCSift Main Stylesheet — Light Theme */

/* ── Variables ──────────────────────────────────────────────────────────────── */
:root {
    --vcs-bg:        #ffffff;
    --vcs-bg-2:      #fafafa;
    --vcs-card:      #ffffff;
    --vcs-border:    #e4e4e7;
    --vcs-border-2:  #d4d4d8;
    --vcs-indigo:    #6366f1;
    --vcs-indigo-h:  #4f46e5;
    --vcs-muted:     #a1a1aa;
    --vcs-muted-2:   #71717a;
    --vcs-text:      #09090b;
    --vcs-text-2:    #27272a;
    --vcs-green:     #16a34a;
    --vcs-red:       #dc2626;
    --vcs-yellow:    #d97706;
    --radius:        0.75rem;
    --radius-lg:     1rem;
}

/* ── Base Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    background: var(--vcs-bg);
    color: var(--vcs-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
img { max-width: 100%; height: auto; }

/* ── Typography ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    color: var(--vcs-text);
    font-weight: 700;
    line-height: 1.2;
}
p { color: var(--vcs-muted-2); }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.vcs-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--vcs-indigo);
    color: #fff !important;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    white-space: nowrap;
}
.vcs-btn-primary:hover {
    background: var(--vcs-indigo-h);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}
.vcs-btn-primary:active { transform: translateY(0); }
.vcs-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.vcs-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    color: var(--vcs-muted-2) !important;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.vcs-btn-ghost:hover {
    background: #f4f4f5;
    color: var(--vcs-text) !important;
}

.vcs-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--vcs-indigo) !important;
    border: 1px solid var(--vcs-indigo);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.vcs-btn-outline:hover { background: var(--vcs-indigo); color: #fff !important; }

/* ── Form Elements ──────────────────────────────────────────────────────────── */
.vcs-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: #fff;
    border: 1px solid var(--vcs-border);
    border-radius: var(--radius);
    color: var(--vcs-text);
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.vcs-input:focus {
    border-color: var(--vcs-indigo);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.vcs-input::placeholder { color: var(--vcs-muted); }

.vcs-select {
    width: 100%;
    padding: 0.625rem 2rem 0.625rem 0.875rem;
    background: #fff;
    border: 1px solid var(--vcs-border);
    border-radius: var(--radius);
    color: var(--vcs-text);
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.625rem center;
    background-size: 1rem;
}
.vcs-select:focus {
    border-color: var(--vcs-indigo);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.vcs-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--vcs-muted-2);
    margin-bottom: 0.375rem;
}

/* ── Cards ──────────────────────────────────────────────────────────────────── */
.vcs-card {
    background: var(--vcs-card);
    border: 1px solid var(--vcs-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.vcs-card:hover {
    border-color: var(--vcs-border-2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* ── Investor Card ──────────────────────────────────────────────────────────── */
.investor-card {
    background: #fff;
    border: 1px solid var(--vcs-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    position: relative;
}
.investor-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 16px rgba(99,102,241,0.08);
    transform: translateY(-1px);
}

.investor-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.investor-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--vcs-text);
    margin: 0;
}
.investor-name a { color: var(--vcs-text); }
.investor-name a:hover { color: var(--vcs-indigo); }

.investor-title {
    font-size: 0.8125rem;
    color: var(--vcs-muted-2);
    margin: 0.125rem 0 0;
}

.contact-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
    background: #fafafa;
    border: 1px solid var(--vcs-border);
    transition: background 0.15s;
}
.contact-field.blurred span { filter: blur(5px); user-select: none; }
.contact-field .reveal-btn {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--vcs-indigo);
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
    background: none;
    border: none;
    padding: 0;
}
.contact-field .reveal-btn:hover { color: var(--vcs-indigo-h); }

.tag-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 500;
    white-space: nowrap;
}

/* ── Filter Sidebar ─────────────────────────────────────────────────────────── */
.filter-sidebar {
    background: #fff;
    border: 1px solid var(--vcs-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.filter-section {
    border-bottom: 1px solid var(--vcs-border);
    padding: 1rem 1.125rem;
}
.filter-section:last-child { border-bottom: none; }

.filter-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--vcs-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    user-select: none;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--vcs-muted-2);
    transition: color 0.15s;
}
.filter-checkbox-item:hover { color: var(--vcs-text); }

.filter-checkbox-item input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--vcs-indigo);
    cursor: pointer;
    flex-shrink: 0;
}

.filter-count {
    margin-left: auto;
    font-size: 0.6875rem;
    color: var(--vcs-muted);
}

/* ── Hover Link ─────────────────────────────────────────────────────────────── */
.hover-link { transition: color 0.15s; }
.hover-link:hover { color: var(--vcs-indigo) !important; }

/* ── Badge Pill ─────────────────────────────────────────────────────────────── */
.vcs-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 500;
    background: #eef2ff;
    color: #6366f1;
}

/* ── Active filter tag ──────────────────────────────────────────────────────── */
.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: #eef2ff;
    color: #6366f1;
    border: 1px solid #c7d2fe;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}
.active-filter-tag button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
    opacity: 0.7;
    line-height: 1;
}
.active-filter-tag button:hover { opacity: 1; }

/* ── Search Bar ─────────────────────────────────────────────────────────────── */
.vcs-search-bar { position: relative; }
.vcs-search-bar input { padding-left: 2.75rem; }
.vcs-search-bar .search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--vcs-muted);
    pointer-events: none;
}

/* ── Autocomplete Dropdown ──────────────────────────────────────────────────── */
#vcs-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid var(--vcs-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 2px;
}
.vcs-autocomplete-item {
    padding: 0.625rem 0.875rem;
    cursor: pointer;
    transition: background 0.1s;
    border-bottom: 1px solid var(--vcs-border);
}
.vcs-autocomplete-item:last-child { border-bottom: none; }
.vcs-autocomplete-item:hover { background: #f4f4f5; }
.vcs-autocomplete-item .ac-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--vcs-text);
}
.vcs-autocomplete-item .ac-meta {
    font-size: 0.75rem;
    color: var(--vcs-muted);
    margin-top: 0.125rem;
}

/* ── Loading Spinner ────────────────────────────────────────────────────────── */
.vcs-spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(99,102,241,0.2);
    border-top-color: var(--vcs-indigo);
    border-radius: 50%;
    animation: vcs-spin 0.65s linear infinite;
}
@keyframes vcs-spin { to { transform: rotate(360deg); } }

/* ── Skeleton Loader ────────────────────────────────────────────────────────── */
.vcs-skeleton {
    background: linear-gradient(90deg, #f4f4f5 25%, #e4e4e7 50%, #f4f4f5 75%);
    background-size: 200% 100%;
    animation: vcs-shimmer 1.5s infinite;
    border-radius: 0.375rem;
}
@keyframes vcs-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Tabs ───────────────────────────────────────────────────────────────────── */
.vcs-tabs {
    display: flex;
    border-bottom: 1px solid var(--vcs-border);
    gap: 0.25rem;
}
.vcs-tab {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--vcs-muted-2);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.vcs-tab:hover { color: var(--vcs-text); }
.vcs-tab.active { color: var(--vcs-indigo); border-bottom-color: var(--vcs-indigo); }

/* ── Modal ──────────────────────────────────────────────────────────────────── */
.vcs-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}
.vcs-modal {
    background: #fff;
    border: 1px solid var(--vcs-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}

/* ── Notifications ──────────────────────────────────────────────────────────── */
.vcs-notice {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    max-width: 360px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    animation: vcs-slide-in 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}
@keyframes vcs-slide-in {
    from { opacity: 0; transform: translateY(0.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}
.vcs-notice.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.vcs-notice.error   { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.vcs-notice.info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }

/* ── Progress Bar ───────────────────────────────────────────────────────────── */
.vcs-progress {
    height: 6px;
    background: var(--vcs-border);
    border-radius: 9999px;
    overflow: hidden;
}
.vcs-progress-bar {
    height: 100%;
    background: var(--vcs-indigo);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* ── Pricing Cards ──────────────────────────────────────────────────────────── */
.pricing-card {
    background: #fafafa;
    border: 1px solid var(--vcs-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: box-shadow 0.2s;
}
.pricing-card.featured {
    background: #fff;
    border-color: var(--vcs-indigo);
    box-shadow: 0 0 0 1px var(--vcs-indigo), 0 8px 32px rgba(99,102,241,0.1);
}
.pricing-card .price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--vcs-text);
    line-height: 1;
}
.pricing-card .price-period { font-size: 0.875rem; color: var(--vcs-muted); }
.pricing-card .feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: var(--vcs-muted-2);
}
.pricing-card .feature-list li .icon-check { color: var(--vcs-green); flex-shrink: 0; margin-top: 1px; }
.pricing-card .feature-list li .icon-x    { color: var(--vcs-muted); flex-shrink: 0; margin-top: 1px; }

/* ── Accordion (FAQ) ────────────────────────────────────────────────────────── */
.vcs-accordion-item {
    border: 1px solid var(--vcs-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.15s;
}
.vcs-accordion-item.open { border-color: #c7d2fe; }
.vcs-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--vcs-text);
    gap: 1rem;
}
.vcs-accordion-trigger .icon { flex-shrink: 0; color: var(--vcs-muted); transition: transform 0.2s; }
.vcs-accordion-item.open .vcs-accordion-trigger .icon { transform: rotate(180deg); color: var(--vcs-indigo); }
.vcs-accordion-body {
    display: none;
    padding: 0 1.25rem 1rem;
    font-size: 0.875rem;
    color: var(--vcs-muted-2);
    line-height: 1.7;
}
.vcs-accordion-item.open .vcs-accordion-body { display: block; }

/* ── Table ──────────────────────────────────────────────────────────────────── */
.vcs-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.vcs-table th {
    padding: 0.625rem 0.875rem;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vcs-muted);
    border-bottom: 1px solid var(--vcs-border);
    background: #fafafa;
}
.vcs-table td {
    padding: 0.875rem;
    color: var(--vcs-muted-2);
    border-bottom: 1px solid var(--vcs-border);
}
.vcs-table tr:last-child td { border-bottom: none; }
.vcs-table tr:hover td { background: #fafafa; }

/* ── Directory Page Layout ──────────────────────────────────────────────────── */
.directory-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 768px) {
    .directory-layout { grid-template-columns: 1fr; }
    .filter-sidebar-wrap { display: none; }
    .filter-sidebar-wrap.mobile-open { display: block; }
}

/* ── Blog ───────────────────────────────────────────────────────────────────── */
.blog-post-content { color: var(--vcs-muted-2); line-height: 1.8; font-size: 1.0625rem; }
.blog-post-content h2, .blog-post-content h3 { color: var(--vcs-text); margin-top: 2rem; margin-bottom: 0.75rem; }
.blog-post-content p { margin-bottom: 1rem; }
.blog-post-content ul, .blog-post-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.blog-post-content li { margin-bottom: 0.375rem; }
.blog-post-content a { color: var(--vcs-indigo); text-decoration: underline; }
.blog-post-content a:hover { color: var(--vcs-indigo-h); }
.blog-post-content blockquote {
    border-left: 3px solid var(--vcs-indigo);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: #eef2ff;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--vcs-muted-2);
    font-style: italic;
}
.blog-post-content code {
    background: #f4f4f5;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: var(--vcs-indigo);
}
.blog-post-content pre {
    background: #f4f4f5;
    border: 1px solid var(--vcs-border);
    border-radius: var(--radius);
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}
.blog-post-content pre code { background: none; padding: 0; color: var(--vcs-text-2); }

/* ── Profile Page ───────────────────────────────────────────────────────────── */
.profile-header {
    background: #fafafa;
    border: 1px solid var(--vcs-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}
.profile-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

/* ── Auth Forms ─────────────────────────────────────────────────────────────── */
.auth-card {
    background: #fff;
    border: 1px solid var(--vcs-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* ── Dashboard ──────────────────────────────────────────────────────────────── */
.dashboard-stat-card {
    background: #fff;
    border: 1px solid var(--vcs-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
}
.dashboard-stat-card .stat-value { font-size: 1.75rem; font-weight: 700; color: var(--vcs-text); }
.dashboard-stat-card .stat-label { font-size: 0.8125rem; color: var(--vcs-muted); margin-top: 0.25rem; }

/* ── Tools Pages ────────────────────────────────────────────────────────────── */
.tool-card {
    background: #fff;
    border: 1px solid var(--vcs-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.tool-card:hover { border-color: #c7d2fe; box-shadow: 0 4px 16px rgba(99,102,241,0.08); }

/* ── Upgrade CTA Banner ─────────────────────────────────────────────────────── */
.upgrade-banner {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

/* ── Empty State ────────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--vcs-muted); }
.empty-state svg { margin: 0 auto 1rem; opacity: 0.4; }

/* ── Header blur ────────────────────────────────────────────────────────────── */
.vcs-header-blur {
    background: rgba(255,255,255,0.9);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .vcs-modal { padding: 1.25rem; }
    .pricing-card { padding: 1.5rem; }
    .auth-card { padding: 1.5rem; }
}

/* ── Print ──────────────────────────────────────────────────────────────────── */
@media print {
    header, footer, .filter-sidebar, .vcs-btn-primary, .vcs-btn-ghost { display: none !important; }
    body { background: white; color: black; }
    .investor-card { border: 1px solid #ccc; }
}
