/* investor.css - 투자자 네트워크 페이지 전용 스타일 (startup 스타일 적용) */

/* 1. 메인 컨테이너 레이아웃 */
.investor-container {
    display: flex;
    gap: 40px;
    padding: 120px 6% 60px;
    max-width: 1600px;
    margin: 0 auto;
    align-items: flex-start;
}

/* 2. 왼쪽 사이드바 */
.investor-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
}

.investor-sidebar::-webkit-scrollbar {
    display: none;
}

/* 3. 검색 섹션 */
.search-section {
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
}

.search-box input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

/* 4. 필터 네비게이션 */
.filter-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* 토글 버튼 스타일 */
.filter-group-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
    position: relative;
}

.filter-group-toggle:hover {
    background: #f8fafc;
    border-color: var(--accent-color);
}

.filter-group-toggle.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.filter-group-toggle i {
    font-size: 1.1rem;
    position: absolute;
    left: 16px;
}

.filter-group-toggle .arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    position: absolute;
    right: 16px;
}

.filter-group-toggle.active .arrow {
    transform: rotate(180deg);
}

/* 필터 옵션 가로 배치 */
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    padding: 0 5px;
    transition: all 0.3s ease;
}

.filter-options[style*="none"] {
    display: none !important;
}

.filter-btn {
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn:hover {
    background: #f8fafc;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.filter-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    font-weight: 600;
}

/* 6. 오른쪽 메인 콘텐츠 */
.investor-main-display {
    flex-grow: 1;
    min-height: 600px;
}

.content-header {
    margin-bottom: 40px;
    text-align: left;
}

.page-title {
    font-family: 'JetBrains Mono', 'Noto Sans KR', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 7. 투자자 그리드 */
.investor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* 8. 투자자 카드 */
.investor-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.investor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.investor-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.investor-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.investor-info {
    flex-grow: 1;
}

.investor-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    line-height: 1.3;
}

.investor-type {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 5px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--success-color);
    font-weight: 600;
}

.verified-badge i {
    font-size: 0.85rem;
}

.investor-focus {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.investor-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.stat-box {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.contact-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 9. 로딩 스피너 */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 10. 모달 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.modal-investor-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.modal-investor-info h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-investor-type {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.verified-badge.large {
    font-size: 0.9rem;
    padding: 6px 12px;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 20px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.modal-stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 12px;
}

.modal-stat-item .number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.modal-stat-item .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.program-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.program-info-item {
    background: rgba(37, 99, 235, 0.05);
    padding: 15px;
    border-radius: 12px;
    border-left: 3px solid var(--accent-color);
}

.program-info-item .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.program-info-item .value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.modal-btn {
    flex: 1;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-btn.primary {
    background: var(--primary-gradient);
    color: white;
}

.modal-btn.primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.modal-btn.secondary {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.modal-btn.secondary:hover {
    background: var(--accent-color);
    color: white;
}

/* 11. 빈 결과 */
.no-results {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--border-color);
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.no-results p {
    font-size: 1rem;
    line-height: 1.6;
}

/* 12. 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.investor-card {
    animation: fadeInUp 0.5s ease-out;
}

/* 13. 반응형 디자인 */
@media (max-width: 1024px) {
    .investor-container {
        flex-direction: column;
        padding-top: 100px;
    }

    .investor-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        margin-bottom: 30px;
    }

    .investor-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .investor-container {
        padding: 100px 4% 60px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .investor-grid {
        grid-template-columns: 1fr;
    }

    .investor-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .modal-stats-grid {
        grid-template-columns: 1fr;
    }

    .program-info-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .investor-container {
        padding: 90px 3% 50px;
    }

    .investor-sidebar {
        padding: 20px;
    }

    .investor-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* 화살표가 없는 버튼 (모든 투자자, 엔젤투자자)을 위한 스타일 */
.filter-group-toggle:not(:has(.arrow)) {
    justify-content: center;
    position: relative;
}

/* 화살표가 있는 버튼은 상대 위치 지정 */
.filter-group-toggle:has(.arrow) {
    position: relative;
}