/* About ClueBe Custom Styles */

/* Tab active state */

html {
    font-family: "Noto Sans KR", sans-serif !important;
    font-optical-sizing: auto;
    font-style: normal;
}

#about .text-sm {
    font-size: 1rem;
}
.tab-btn.active {
    background-color: white;
    color: rgb(118, 32, 246); /* 트렌비 브랜드 보라색 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* FAQ animation */
.faq-answer {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

.faq-answer:not(.hidden) {
    max-height: 200px;
}

/* Pin pulse animation */
.pin {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Tooltip positioning */
#tooltip {
    transition: opacity 0.2s ease-in-out;
}

/* Brand card hover effects */
.brand-card {
    transition: all 0.3s ease-in-out;
}

.brand-card:hover {
    transform: translateY(-4px);
}

/* Counter animation */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Modal backdrop blur */
#sampleReportModal {
    backdrop-filter: blur(4px);
}

/* Custom scrollbar for modal - Dark theme */
#sampleReportModal .overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

#sampleReportModal .overflow-y-auto::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 3px;
}

#sampleReportModal .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 3px;
}

#sampleReportModal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Custom scrollbar for main page - Light theme */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Focus states for accessibility */
.tab-btn:focus,
.faq-question:focus,
.pin:focus {
    outline: 2px solid rgb(118, 32, 246); /* 트렌비 브랜드 보라색 */
    outline-offset: 2px;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pin {
        width: 20px;
        height: 20px;
    }
    
    .pin .w-2 {
        width: 6px;
        height: 6px;
    }
    
    /* TopNav 모바일 개선 */
    /* 로고 크기 줄이기 */
    nav .text-2xl img {
        width: 70px !important;
    }
    
    /* 메뉴 링크 폰트 크기 증가 */
    nav .text-sm {
        font-size: 1rem !important;
    }
    
    nav .md\:text-base {
        font-size: 1rem !important;
    }
    
    /* 로그인 버튼 크기 증가 */
    nav a.px-4 {
        padding: 0.625rem 1.25rem !important;
        font-size: 1rem !important;
    }
    
    /* 네비게이션 링크 간격 조정 */
    nav .space-x-4 {
        gap: 1.25rem !important;
    }
}

/* 작은 모바일 화면에서 더 큰 터치 영역 */
@media (max-width: 576px) {
    /* TopNav 로고 더 작게 */
    nav .text-2xl img {
        width: 60px !important;
    }
    
    /* 메뉴 링크 더 크게 */
    nav .text-sm,
    nav .md\:text-base {
        font-size: 1.05rem !important;
    }
    
    /* 로그인 버튼 더 크게 */
    nav a.px-4 {
        padding: 0.75rem 1.5rem !important;
        font-size: 1.05rem !important;
    }
    
    /* 네비게이션 높이 증가 */
    nav .h-16 {
        min-height: 4.5rem !important;
    }
}

/* Print styles */
@media print {
    .tab-btn,
    .faq-question,
    .pin,
    #sampleReportModal {
        display: none !important;
    }
    
    .faq-answer {
        max-height: none !important;
        display: block !important;
    }
}
body {
    margin: 0;
    padding: 0;
}

/* High-contrast defaults for light backgrounds */
.text-contrast-strong {
    color: #111827; /* gray-900 */
}

.muted-on-light {
    color: #4b5563; /* gray-600 */
}

/* Cards on white */
.card-light {
    background: #ffffff;
    color: #111827;
}

/* Enforce link contrast */
a, button {
    color: inherit;
}

a.link-strong {
    color: #6d28d9; /* purple-700 */
}

a.link-strong:hover {
    color: #5b21b6; /* purple-800 */
}

/* 홈 페이지 전체 배경을 화면에 꽉 차게 */
.home-page {
    min-height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
}

/* KPI 카드들의 최소 너비 설정 */
.kpi-card {
    min-width: 200px;
}

/* 반응형 텍스트 크기 조정 */
@media (max-width: 768px) {
    .kpi-text {
        font-size: 0.9rem;
    }
}

/* Sample Report Modal Styles */
#sampleReportModal .point-analysis {
    background: #343a40;
    border: 1px solid #495057;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 12px;
    border-left: 4px solid #6c757d;
    color: #f8f9fa;
}

#sampleReportModal .point-header {
    background-color: #495057;
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #6c757d;
    margin-bottom: 8px;
}

#sampleReportModal .point-header h6 {
    color: #f8f9fa;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
}

#sampleReportModal .alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
}

#sampleReportModal .alert-info {
    background: linear-gradient(45deg, #1e3a8a, #1e40af);
    color: #dbeafe;
    border-left-color: #3b82f6;
}

#sampleReportModal .alert-warning {
    background: linear-gradient(45deg, #92400e, #b45309);
    color: #fef3c7;
    border-left-color: #f59e0b;
}

#sampleReportModal .alert-secondary {
    background: linear-gradient(45deg, #374151, #4b5563);
    color: #d1d5db;
    border-left-color: #6b7280;
}

#sampleReportModal .feature-card {
    transition: box-shadow 0.3s ease;
    background: #495057;
    border: 1px solid #6c757d;
    color: #f8f9fa;
}

#sampleReportModal .feature-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#sampleReportModal .badge {
    font-size: 0.75rem;
}

#sampleReportModal .badge.bg-success {
    background-color: #28a745 !important;
    color: white !important;
}

#sampleReportModal .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

#sampleReportModal .badge.bg-secondary {
    background-color: #6c757d !important;
    color: white !important;
}

#sampleReportModal .feature-evidence, 
#sampleReportModal .feature-note {
    line-height: 1.4;
}

#sampleReportModal .feature-images small {
    font-size: 0.7rem;
}

/* Bootstrap grid compatibility */
#sampleReportModal .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

#sampleReportModal .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 15px;
    padding-left: 15px;
}

#sampleReportModal .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding-right: 15px;
    padding-left: 15px;
}

#sampleReportModal .col-sm-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-right: 15px;
    padding-left: 15px;
}

#sampleReportModal .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 15px;
    padding-left: 15px;
}

#sampleReportModal .mb-2 { margin-bottom: 0.5rem !important; }
#sampleReportModal .mb-3 { margin-bottom: 1rem !important; }
#sampleReportModal .mb-4 { margin-bottom: 1.5rem !important; }
#sampleReportModal .my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
#sampleReportModal .me-2 { margin-right: 0.5rem !important; }

#sampleReportModal .d-flex { display: flex !important; }
#sampleReportModal .align-items-center { align-items: center !important; }
#sampleReportModal .justify-content-between { justify-content: space-between !important; }
#sampleReportModal .flex-grow-1 { flex-grow: 1 !important; }
#sampleReportModal .fw-bold { font-weight: 700 !important; }
#sampleReportModal .fs-7 { font-size: 0.875rem !important; }
#sampleReportModal .small { font-size: 0.875rem !important; }
#sampleReportModal .text-muted { color: #adb5bd !important; }
#sampleReportModal .h-100 { height: 100% !important; }
#sampleReportModal .border { border: 1px solid #6c757d !important; }
#sampleReportModal .rounded { border-radius: 0.25rem !important; }

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    #sampleReportModal .col-md-6,
    #sampleReportModal .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    #sampleReportModal .col-sm-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    #sampleReportModal .point-analysis {
        padding: 15px;
    }
    
    #sampleReportModal .point-header {
        padding: 0.75rem;
    }
    
    #sampleReportModal .feature-card {
        margin-bottom: 1rem;
    }
}
