/* ===== 보험사 영업포털 전용 CSS - 통일성 버전 ===== */

/* ===== CSS 변수 설정 ===== */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-card: #ffffff;
    
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    
    --border-radius: 8px;
    --spacing: 8px;
    
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    --glass-blur: blur(12px);
    --white: #ffffff;
}

/* ===== 글로벌 리셋 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.unified-search-page {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg-gradient);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    line-height: 1.5;
    color: var(--text-primary);
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== 컬러풀 배경 ===== */
.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-gradient);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    pointer-events: none;
}

.glass-blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: var(--glass-blur);
    animation: float 8s ease-in-out infinite;
}

.blob-1 {
    width: 300px;
    height: 300px;
    top: 5%;
    left: 5%;
    animation-delay: 0s;
    background: rgba(16, 185, 129, 0.1);
}

.blob-2 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 5%;
    animation-delay: 3s;
    background: rgba(59, 130, 246, 0.1);
}

.blob-3 {
    width: 150px;
    height: 150px;
    bottom: 5%;
    left: 40%;
    animation-delay: 6s;
    background: rgba(245, 158, 11, 0.1);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(3deg); }
    66% { transform: translateY(8px) rotate(-3deg); }
}

/* ===== 메인 레이아웃 ===== */
.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: var(--glass-blur);
    pointer-events: none;
}

.main-wrapper > * {
    pointer-events: auto;
}

.hero-section {
    padding: 10px 0 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 65px;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: var(--glass-blur);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    color: var(--secondary-color);
}

.hero-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    line-height: 1.4;
}

/* ===== 메인 콘텐츠 ===== */
.main-content {
    flex: 1;
    padding: 0px 0 20px 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.pc-search-interface {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    width: 1400px;
    margin: 0 auto;
    height: calc(100vh - 180px);
    align-items: start;
}

/* ===== 검색 사이드바 ===== */
.search-sidebar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 20px;
    height: calc(77vh - 40px);
    overflow-y: auto;
}

.search-sidebar-header {
    margin-bottom: 16px;
}

.header-with-back {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 16px;
    flex-shrink: 0;
}

.back-btn:hover {
    transform: translateX(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.2;
}

.header-text p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== 폼 스타일 ===== */
.search-form-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-label i {
    color: var(--primary-color);
    width: 14px;
    font-size: 12px;
    margin-right: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.25s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-hint {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== 필터 버튼 ===== */
.filter-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: transparent;
}

.filter-btn i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

/* ===== 검색 버튼 ===== */
.search-btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    margin-top: 16px;
}

.search-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.search-btn-primary i {
    font-size: 14px;
}

/* ===== 검색 결과 영역 ===== */
.search-results-area {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    min-height: 500px;
    overflow-y: auto;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.results-title-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-title-section h3 i {
    color: var(--primary-color);
    font-size: 16px;
}

.result-count {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 12px;
}

/* ===== 보험사 섹션 ===== */
.insurance-section {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.section-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h4 i {
    font-size: 16px;
}

.section-count {
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* ===== 보험사 그리드 (2행 3열) ===== */
.insurance-grid {
    display: grid;
    gap: 12px;
}

/* ===== 보험사 카드 ===== */
.insurance-card {
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.25s ease;
    gap: 16px;
    min-height: 80px;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.insurance-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===== 회사 로고 ===== */
.company-logo {
    width: 140px;
    height: 45px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.company-logo i {
    font-size: 24px;
    color: var(--primary-color);
}

/* ===== 회사명 ===== */
.company-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    width: 100px;
    flex-shrink: 0;
}

/* ===== 영업포털 버튼 ===== */
.portal-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.portal-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ===== FC정보 섹션 ===== */
.fc-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
}

.fc-code, .fc-password, .fc-contact {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

/* FC코드 스타일 */
.fc-code {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.fc-code:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
}

/* 비밀번호 스타일 */
.fc-password {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
    cursor: default;
}

/* 담당자 정보 스타일 */
.fc-contact {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.fc-contact:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.fc-code i, .fc-password i, .fc-contact i {
    font-size: 10px;
}

/* ===== 검색 결과 없음 ===== */
.no-results, .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-results i, .empty-state i {
    font-size: 32px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.no-results h4, .empty-state h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.no-results p, .empty-state p {
    font-size: 14px;
    margin: 0;
}

/* ===== 빈 섹션 메시지 ===== */
.empty-section-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    margin: 12px 0;
    backdrop-filter: blur(10px);
}

.empty-section-content {
    text-align: center;
    color: var(--text-secondary);
}

.empty-section-content i {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.empty-section-content p {
    font-size: 13px;
    margin: 0;
}

/* ===== 정보 카드 ===== */
.info-section {
    margin-top: 16px;
}

.info-card {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: white;
    font-size: 16px;
}

.info-content h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.info-content p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.info-content ul {
    list-style: none;
    margin-bottom: 12px;
}

.info-content li {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.info-content li::before {
    content: '•';
    color: var(--primary-color);
    margin-right: 6px;
    font-weight: bold;
}

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

.notice-box {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    font-size: 11px;
    color: #d97706;
    font-weight: 500;
}

.notice-box i {
    color: #f59e0b;
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 1200px) {
    .pc-search-interface {
        grid-template-columns: 280px 1fr;
        gap: 16px;
    }
    
    .insurance-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 1024px) {
    .pc-search-interface {
        grid-template-columns: 1fr;
        gap: 16px;
        height: auto;
    }
    
    .search-sidebar {
        position: static;
        height: auto;
        max-height: none;
        order: 2;
    }
    
    .search-results-area {
        order: 1;
    }
    
    .insurance-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .insurance-card {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 16px;
        text-align: center;
    }
    
    .company-name {
        width: 100%;
        text-align: center;
    }
    
    .portal-btn {
        width: 100%;
        text-align: center;
    }
    
    .fc-info {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
    
    .insurance-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .search-sidebar,
    .search-results-area {
        padding: 16px;
    }
    
    .insurance-card {
        padding: 12px;
        gap: 8px;
    }
    
    .company-logo {
        width: 60px;
        height: 38px;
    }
}

/* ===== 스크롤바 스타일 ===== */
.search-sidebar::-webkit-scrollbar {
    width: 4px;
}

.search-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.search-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.search-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ===== 애니메이션 제거 (성능 최적화) ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 