/* VC Search Specific Styles */
.vc-page {
    max-width: 1400px;
    margin: 100px auto 40px;
    padding: 0 24px;
    position: relative;
}

.vc-header {
    text-align: center;
    margin-bottom: 16px;
    padding: 8px 0;
}

.vc-header .sp-title {
    font-size: 28px;
    margin-bottom: 4px;
}

.vc-header .sp-subtitle {
    font-size: 13px;
    margin: 0;
    opacity: 0.7;
}

/* Dashboard Layout */
.vc-dashboard-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 900px) {
    .vc-dashboard-layout {
        grid-template-columns: 1fr;
    }
}

.vc-sidebar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.vc-sidebar-hero {
    margin-bottom: 20px;
    padding: 6px 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vc-sidebar-hero-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--fg-default);
    margin-bottom: 8px;
    line-height: 1.4;
}

.vc-sidebar-hero-sub {
    font-size: 12px;
    color: var(--fg-dim);
    line-height: 1.6;
}

.vc-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--fg-default);
    margin: 0;
}

.vc-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vc-reset-btn {
    background: transparent;
    border: none;
    color: var(--fg-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.vc-reset-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--fg-default);
}

.vc-filter-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.vc-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--fg-dim);
}

.vc-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.vc-check-label:hover {
    color: var(--fg-default);
}


.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--fg-dim);
}

.vc-input, .vc-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--fg-default);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

.vc-input:focus, .vc-select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.4);
}

.vc-select option {
    background: #111;
    color: #fff;
}

.vc-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
}

.vc-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 4px;
    margin-bottom: 8px;
}

.vc-count-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vc-count-icon {
    font-size: 14px;
    opacity: 0.5;
}

.vc-count {
    font-size: 12px;
    font-weight: 500;
    color: var(--fg-dim);
}

/* VC Table Layout */
.vc-main {
    min-width: 0;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.vc-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.vc-table-wrapper::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}
.vc-table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 0 0 12px 12px;
}
.vc-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
.vc-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.vc-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    text-align: left;
}

.vc-table th {
    background: rgba(0, 0, 0, 0.2);
    color: var(--fg-dim);
    font-size: 12px;
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.vc-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--fg-muted);
    font-size: 10px;
    font-weight: bold;
    margin-left: 6px;
    cursor: help;
    vertical-align: middle;
    transition: all 0.2s ease;
}
.vc-tooltip-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: scale(1.1);
}

.vc-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: top;
}

.vc-table-row {
    transition: background 0.2s;
}

.vc-table-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.vc-table-row:last-child td {
    border-bottom: none;
}

/* Column Widths & Layouts */
.col-name { width: 22%; min-width: 180px; }
.col-sector { width: 18%; min-width: 140px; }
.col-stage { width: 12%; min-width: 100px; }
.col-desc { width: 33%; min-width: 280px; }
.col-action { width: 15%; min-width: 150px; }

.vc-name-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vc-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--fg-default);
    margin: 0;
    line-height: 1.4;
}

.vc-url {
    font-size: 12px;
    color: var(--blue);
    text-decoration: none;
    word-break: break-all;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vc-url:hover {
    text-decoration: underline;
}

.vc-desc-cell {
    font-size: 12px;
    color: var(--fg-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    word-break: break-all;
}

.vc-inv-mini {
    font-size: 11px;
    color: var(--fg-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.vc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vc-tag {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--fg-muted);
}

.vc-tag.primary {
    background: rgba(212, 168, 74, 0.15);
    color: var(--accent);
    border: 1px solid rgba(212, 168, 74, 0.2);
}

.vc-desc {
    font-size: 13px;
    color: var(--fg-muted);
    line-height: 1.6;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Investments Section */
.vc-investments {
    margin-bottom: 24px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.vc-inv-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--fg-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vc-inv-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vc-inv-item {
    font-size: 12px;
    color: var(--fg-muted);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vc-inv-item:last-child {
    margin-bottom: 0;
}

.vc-inv-empty {
    font-size: 12px;
    color: var(--fg-dim);
    font-style: italic;
}

/* Actions Section */
.vc-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: auto;
}

.vc-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    border: none;
    background: transparent;
    text-decoration: none;
    color: var(--blue);
    cursor: pointer;
    transition: color 0.2s;
}

.vc-act-btn:hover {
    color: var(--fg-default);
    text-decoration: underline;
}

.vc-act-btn.primary {
    color: var(--accent);
    background: transparent;
    border: none;
    box-shadow: none;
}

.vc-act-btn.primary:hover {
    filter: brightness(1.2);
    transform: none;
    text-decoration: underline;
}

.vc-act-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
    color: var(--fg-dim);
}

.vc-loading {
    text-align: center;
    padding: 40px;
}

.vc-loading .spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ai-match-btn {
    background: linear-gradient(135deg, rgba(212, 168, 74, 0.1) 0%, rgba(162, 118, 24, 0.2) 100%);
    border-color: rgba(212, 168, 74, 0.3);
    color: var(--accent);
}

.ai-match-btn:hover {
    background: linear-gradient(135deg, rgba(212, 168, 74, 0.2) 0%, rgba(162, 118, 24, 0.3) 100%);
    border-color: rgba(212, 168, 74, 0.5);
}

/* VC Detail Modal */
.vc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vc-modal-content {
    background: #1a1a22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.2s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.vc-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--fg-dim);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.2s;
}

.vc-modal-close:hover {
    color: var(--fg-default);
}

/* Modal内部のスタイル */
.vc-modal-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--fg-default);
    margin: 0 0 6px 0;
}

.vc-modal-url {
    font-size: 13px;
    color: var(--blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
}

.vc-modal-url:hover { text-decoration: underline; }

.vc-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.vc-modal-section {
    margin-bottom: 20px;
}

.vc-modal-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.vc-modal-text {
    font-size: 14px;
    color: var(--fg-muted);
    line-height: 1.7;
}

.vc-modal-inv-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vc-modal-inv-item {
    font-size: 13px;
    color: var(--fg-muted);
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    border-left: 2px solid rgba(212, 168, 74, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.vc-modal-inv-text {
    flex: 1;
    line-height: 1.5;
}
.vc-source-link {
    font-size: 11px;
    color: var(--blue);
    text-decoration: none;
    white-space: nowrap;
    padding: 2px 6px;
    background: rgba(43, 116, 226, 0.1);
    border-radius: 4px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.vc-source-link:hover {
    background: rgba(43, 116, 226, 0.2);
    text-decoration: none;
}
.vc-search-link {
    color: var(--fg-muted);
    background: rgba(255, 255, 255, 0.05);
}
.vc-search-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--fg-default);
}

.vc-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.vc-modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
    background: var(--accent);
    color: #fff;
}

.vc-modal-cta:hover {
    filter: brightness(1.1);
}

.vc-modal-cta.secondary {
    background: rgba(255,255,255,0.05);
    color: var(--fg-default);
    border: 1px solid rgba(255,255,255,0.1);
}

.vc-modal-cta.secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* テーブル行クリック可能スタイル */
.vc-table-row {
    cursor: pointer;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .vc-page {
        padding: 0 16px;
        margin-top: 80px;
    }
    
    .vc-header .sp-title {
        font-size: 24px;
    }
    
    .vc-dashboard-layout {
        gap: 16px;
    }
    
    .vc-sidebar {
        padding: 16px;
    }
    
    .vc-filter-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    /* Transform Table to Card Layout */
    .vc-table-wrapper {
        border: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow-x: visible;
        padding: 0;
    }
    
    .vc-table, .vc-table tbody, .vc-table tr, .vc-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }
    
    .vc-table thead {
        display: none;
    }
    
    .vc-table tr.vc-table-row {
        margin-bottom: 16px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        padding: 16px;
        position: relative;
    }
    .vc-table tr.vc-table-row:hover {
        background: rgba(255, 255, 255, 0.06);
    }
    
    .vc-table td {
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        position: relative;
        text-align: left;
    }
    
    .vc-table td:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-top: 8px;
    }
    
    /* Display the data-label inside the card for non-action columns */
    .vc-table td:not(.col-action)::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.5);
        text-transform: uppercase;
        margin-bottom: 4px;
        letter-spacing: 0.05em;
    }
    
    .col-name, .col-sector, .col-stage, .col-desc, .col-action {
        width: 100% !important;
        min-width: 0 !important;
    }
    
    .vc-desc-cell {
        -webkit-line-clamp: 4; /* Show a bit more text on mobile */
    }

    /* Match modal layout for mobile */
    .vc-modal-overlay {
        padding: 12px;
    }
    .vc-modal-content {
        padding: 24px;
        max-height: 90vh;
    }
    .vc-modal-name {
        font-size: 18px;
        padding-right: 24px;
    }
    .vc-modal-actions {
        flex-direction: column;
    }
    .vc-modal-cta {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
