/* * (주)온브리드 - 통합 스타일시트 (style.css)
 * 최종 업데이트: 2026-01-02 
 * 수정사항: Home 히어로 슬라이더 전체 폭(100%) 적용 및 모든 히어로 높이 통일
 */

:root { 
    --bg: #0b0f19; 
    --bg-soft: #111827; 
    --primary: #3b82f6; 
    --secondary: #06b6d4; 
    --text: #e5e7eb; 
    --muted: #9ca3af; 
    --border: #1f2937; 
}

/* 기본 설정 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Inter', 'Noto Sans KR', sans-serif; 
    background: var(--bg); 
    color: var(--text); 
    line-height: 1.6; 
    overflow-x: hidden; 
}
a { color: inherit; text-decoration: none; transition: 0.3s; cursor: pointer; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* 헤더 및 네비게이션 */
header { 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    backdrop-filter: blur(12px); 
    background: rgba(11, 15, 25, 0.7); 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}
.nav { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.logo-img { height: 18px; width: auto; vertical-align: middle; transition: transform 0.3s ease; }
.logo-img:hover { transform: scale(1.02); }

.nav-links { display: flex; align-items: center; gap: 32px; height: 100%; }
.nav-links > a, .dropdown-trigger { 
    font-size: 15px; 
    font-weight: 500; 
    color: var(--muted); 
    display: flex; 
    align-items: center; 
    height: 80px; 
    cursor: pointer; 
}
.nav-links a:hover, .nav-links a.active, .dropdown:hover .dropdown-trigger { color: #fff; }

/* 드롭다운 메뉴 */
.dropdown { position: relative; display: inline-block; }
.dropdown-content { 
    display: none; 
    position: absolute; 
    top: 80px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: var(--bg-soft); 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    min-width: 180px; 
    z-index: 200; 
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { 
    display: block; 
    padding: 14px 20px; 
    font-size: 14px; 
    color: var(--muted); 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}
.dropdown-content a:last-child { border-bottom: none; }

/* 네비게이션 문의 버튼 */
.nav-contact-btn { 
    padding: 10px 20px !important; 
    border-radius: 8px; 
    background: rgba(59, 130, 246, 0.1); 
    border: 1px solid rgba(59, 130, 246, 0.5) !important; 
    color: #fff !important; 
    font-size: 14px; 
    font-weight: 600; 
    margin-left: 10px; 
    transition: all 0.3s ease; 
    height: auto !important; 
    align-self: center; 
}
.nav-contact-btn:hover { 
    background: var(--primary) !important; 
    border-color: var(--primary) !important; 
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); 
    transform: translateY(-1px); 
}

/* 히어로 섹션 공통 설정 (높이 통일) */
.hero { 
    display: none; 
    position: relative; 
    width: 100%; 
    overflow: hidden; 
    height: 60vh; 
    min-height: 600px;
}
.hero.active { display: block; }

/* [Home 섹션 전용] 슬라이더 전체 폭 레이아웃 */
#hero-home .hero-slider-container { 
    width: 100%; 
    height: 100%;
    overflow: hidden; 
    position: relative; 
}

#hero-home .slider-track { 
    display: flex; 
    width: 400%; /* 슬라이드 4개 기준 */
    height: 100%;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1); 
}

#hero-home .slide { 
    position: relative; 
    width: 25%; /* 화면 폭 100% */
    height: 100%; 
    display: flex; 
    align-items: center; 
    background-size: cover; 
    background-position: center; 
    flex-shrink: 0; 
    pointer-events: none; 
}
#hero-home .slide.current-view { pointer-events: auto; }

#hero-home .slide::before { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    background: radial-gradient(circle at center, rgba(11, 15, 25, 0.3) 0%, rgba(11, 15, 25, 0.8) 100%); 
    z-index: 1; 
}

/* [일반 페이지 히어로] 현재 상태 유지 및 중앙 정렬 */
.hero:not(#hero-home) { 
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}
.hero:not(#hero-home).active { 
    display: flex; 
    align-items: center; 
}

/* 히어로 콘텐츠 공통 */
.hero-content { 
    position: relative; 
    z-index: 10; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 24px; 
    width: 100%; 
}

/* 애니메이션 효과 */
.slide .hero-content { opacity: 0; transform: translateY(30px); transition: 1s ease 0.5s; }
.slide.current-view .hero-content { opacity: 1; transform: translateY(0); }

.hero h1 { 
    font-size: clamp(32px, 5vw, 64px); 
    line-height: 1.15; 
    margin-bottom: 24px; 
    font-weight: 800; 
    color: #fff; 
    letter-spacing: -1.5px; 
    
    /* [핵심 추가] 텍스트 그림자: 배경이 흰색일 때 글자를 식별하게 해주는 가장 중요한 속성 */
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.2), 
                 0 0 5px rgba(0, 0, 0, 0.2);
    word-break: keep-all; /* 한글 단어 끊김 방지 */
}

.hero h1 span { 
    /* 기존 그라데이션 유지 */
    background: linear-gradient(135deg, var(--primary), var(--secondary)); 
    -webkit-background-clip: text; 
    color: transparent; 
    
    /* [수정] 모든 그림자 및 필터 속성 제거 */
    filter: none !important;
    text-shadow: none !important;
}

.hero p { 
    font-size: clamp(16px, 1.8vw, 20px); 
    color: #fff; /* var(--text)보다 명확한 흰색 권장 */
    margin-bottom: 35px; 
    font-weight: 400; 
    max-width: 600px; 
    opacity: 1; /* 가독성을 위해 불투명도 100%로 상향 */
    
    /* [핵심 추가] 설명 문구에도 그림자 적용 */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-btn { 
    display: inline-block; 
    padding: 16px 40px; 
    background: var(--primary); 
    color: #fff; 
    font-weight: 700; 
    border-radius: 50px; 
    border: none; 
    cursor: pointer !important; 
    transition: 0.3s; 
    font-size: 16px; 
    pointer-events: all; 
}
.hero-btn:hover { 
    background: #2563eb; 
    transform: scale(1.05); 
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4); 
}

/* 슬라이더 네비게이터 점 */
.nav-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
}
.nav-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.nav-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 5px;
}
.nav-dot:hover { background: rgba(255, 255, 255, 0.7); }

/* 일반 페이지 섹션 */
.page-section { padding: 80px 0; display: none; }
.page-section.active { display: block; }

/* 테이블 및 게시판 스타일 */
.qna-table { width: 100%; border-collapse: collapse; background: var(--bg-soft); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.qna-table th { background: rgba(255,255,255,0.05); padding: 18px; text-align: left; color: var(--muted); font-size: 14px; }
.qna-table td { padding: 18px; border-bottom: 1px solid var(--border); font-size: 14px; }

.status-badge { padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: bold; }
.s-wait { background: #374151; color: #9ca3af; }
.s-done { background: var(--primary); color: #fff; }

/* Q&A 타임라인(상세뷰) */
.qa-timeline { display: flex; flex-direction: column; gap: 15px; }
.chat-bubble { padding: 24px; border-radius: 12px; font-size: 14px; position: relative; width: 100%; }
.chat-user { background: var(--bg); border: 1px solid rgba(59, 130, 246, 0.3); }
.chat-admin { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-left: 5px solid var(--primary); }
.chat-meta { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }

/* 입력 필드 공통 */
.input-field { 
    width: 100%; 
    padding: 12px; 
    background: #0b0f19; 
    border: 1px solid var(--border); 
    color: #fff; 
    border-radius: 8px; 
    margin-bottom: 15px; 
    font-size: 14px; 
    transition: border-color 0.2s;
}
.input-field:focus { border-color: var(--primary); outline: none; }

/* 페이지네이션 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination button { 
    padding: 8px 16px; 
    background: var(--bg-soft); 
    border: 1px solid var(--border); 
    color: var(--text); 
    border-radius: 6px; 
    cursor: pointer; 
    transition: 0.2s; 
}
.pagination button.active { 
    background: var(--primary); 
    border-color: var(--primary); 
    font-weight: bold; 
    color: #fff;
}
.pagination button:hover:not(.active) { background: var(--border); }

/* 모달 */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
.modal-content { 
    background: var(--bg-soft); 
    padding: 35px; 
    border-radius: 20px; 
    width: 100%; 
    max-width: 600px; 
    border: 1px solid var(--border); 
    max-height: 90vh; 
    overflow-y: auto; 
}

/* 푸터 */
.footer { padding: 80px 0 60px; background: #05070a; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer-logo-img { height: 18px; width: auto; margin-bottom: 24px; opacity: 0.9; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-info h4 { color: #fff; font-size: 18px; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; }

/* [style.css] 하단에 추가 또는 해당 부분 수정 */

/* 1. 공통 .hero 스타일은 유지 (Home에 영향) */
.hero {
    position: relative;
    width: 100%;
    height: 50vh;
    display: none;
    align-items: center;
    background-size: cover;
    background-attachment: fixed;
}

/* 2. [수정] 서브 페이지용 히어로 설정 (Home 섹션 제외) */
/* 회사소개, 솔루션, 클라우드, 재물조사, 구축사례, 자료실, Q&A 전용 */
#hero-about, #hero-solution, #hero-cloud, #hero-inventory,
#hero-cases, #hero-archive, #hero-qna, #hero-contact {
    width: 100% !important;
    min-width: 100% !important;
    background-position: center center !important; /* 이미지를 중앙 정렬하여 우측 공백 방지 */
    background-size: cover !important;           /* 이미지가 무조건 화면을 가득 채우도록 강제 */
    overflow: hidden;                             /* 가로 스크롤 방지 */

    /* 0.8로 농도를 높여 배경 이미지의 밝은 부분을 확실히 눌러줍니다. */
    background: linear-gradient(rgba(11, 21, 35, 0.8), rgba(11, 21, 35, 0.8)), 
                url('onbrid_head.png') no-repeat center center;
}

/* 모바일/태블릿에서 fixed 배경으로 인한 우측 밀림 현상 방지 */
@media (max-width: 1024px) {
    #hero-about, #hero-solution, #hero-cloud, #hero-inventory, 
    #hero-cases, #hero-archive, #hero-qna {
        background-attachment: scroll !important; /* 모바일은 스크롤로 변경하여 렌더링 오류 방지 */
    }
}

/* 상단 내용 영역과 동일한 스타일 적용 */
.display-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px; /* 섹션 간 넓은 간격 */
}

.display-row.reverse {
    flex-direction: row-reverse;
}

.display-content {
    flex: 1;
}

.display-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.display-content h4 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
}

.display-content p {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.8;
}

.display-media {
    flex: 1.2;
    position: relative;
}

.display-media img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* 상단과 조화로운 곡률 */
    box-shadow: 0 30px 60px rgba(0,0,0,0.5); /* 입체감 부여 */
    border: 1px solid var(--border);
}

/* 모바일 대응 */
@media (max-width: 992px) {
    .display-row, .display-row.reverse {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        margin-bottom: 80px;
    }
    .display-media {
        width: 100%;
    }
}

/* 관리자 숨김 링크 스타일 */
.admin-dot {
    color: inherit;          /* 주변 텍스트와 동일한 색상 */
    text-decoration: none;   /* 밑줄 제거 */
    cursor: default;         /* 마우스 올려도 화살표 모양 유지 (손가락X) */
    user-select: none;       /* 드래그 및 선택 방지 */
}

/* 관리자가 식별하기 위해 클릭(누르고 있을 때) 시에만 살짝 반응하게 할 수 있습니다. */
.admin-dot:active {
    opacity: 0.5;
}

/* 통계 조회 바 스타일 */
.stats-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.date-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-inputs input[type="date"] {
    background: #000;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    outline: none;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.quick-btns button {
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 5px;
    transition: 0.2s;
}

.quick-btns button:hover {
    background: #334155;
    color: #fff;
}

/* 차트 컨테이너 */
.chart-container {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 20px;
    height: 350px;
    position: relative;
}


/* 실시간 채팅 위젯 스타일 [cite: 2026-01-02] */
#chat-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

#chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 24px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s;
}

#chat-toggle-btn:hover { transform: scale(1.1); }

#chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

#chat-header {
    background: var(--primary);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

/* 활성 상담 목록 아이템 스타일 [cite: 2026-01-02] */
.room-item {
    padding: 15px;
    border-bottom: 1px solid #1f2937;
    cursor: pointer;
    transition: background 0.2s;
    background: #111827;
}

.room-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* 선택되었을 때의 강조 스타일 */
.room-item.active-room {
    background: rgba(59, 130, 246, 0.2) !important;
    border-left: 4px solid #3b82f6 !important;
}

/* 채팅 말풍선 기본 디자인 (기존 script.js 디자인 유지) */
.chat-bubble { padding: 10px 15px; border-radius: 15px; margin-bottom: 8px; max-width: 80%; line-height: 1.5; font-size: 14px; }
.chat-admin { background: #1f2937; color: #fff; align-self: flex-start; border-bottom-left-radius: 2px; }
.chat-user { background: #3b82f6; color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; margin-left: auto; }
.chat-meta { font-size: 11px; margin-bottom: 4px; opacity: 0.7; }

/* 실시간 채팅 라벨 스타일 */
#chat-label {
    position: fixed;
    bottom: 90px; /* 버튼(보통 bottom:30px)보다 위에 위치 */
    right: 30px;  /* 버튼과 우측 정렬 맞춤 */
    
    background-color: #fff;      /* 흰색 배경 */
    color: #3b82f6;              /* 글자색 (Primary Color) */
    border: 1px solid #3b82f6;   /* 테두리 */
    
    padding: 8px 12px;           /* 안쪽 여백 */
    border-radius: 20px;         /* 둥글게 */
    font-weight: bold;           /* 글자 굵게 */
    font-size: 14px;             /* 글자 크기 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* 그림자 */
    
    cursor: pointer;             /* 마우스 올리면 손가락 모양 */
    z-index: 9999;               /* 제일 위에 표시 */
    
    /* 둥둥 떠있는 애니메이션 */
    animation: bounce 2s infinite;
}

/* 말풍선 꼬리 (선택 사항 - 라벨 아래 뾰족한 부분) */
#chat-label::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-bottom: 1px solid #3b82f6;
    border-right: 1px solid #3b82f6;
    transform: rotate(45deg);
}

/* 애니메이션 정의 */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 채팅창이 열렸을 때는 라벨 숨기기 */
.hidden-label {
    display: none !important;
}

/* 최종 업데이트 정보 스타일 */
.footer-update-tag {
    font-size: 11px;
    color: #4b5563; /* 가시성이 낮으면서도 깔끔한 진회색 */
    margin-bottom: 6px;
    opacity: 0.8;
    font-family: 'Inter', sans-serif;
}