/**
 * 채용공고 스킨 메인 스타일시트
 * 
 * Phase 4: UX 기초 레이아웃 및 리스트/상세 공통 UI
 * 경로: theme/sisul/mobile/skin/board/job/css/style.css
 * 모바일 우선 반응형 디자인
 */

/* ========================================
   공통 스타일
======================================== */
* {box-sizing: border-box;}

body {font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; font-size: 14px; line-height: 1.6; color: #333;}

/* Font Awesome 아이콘 */
.fa {margin-right: 4px;}

/* ========================================
   리스트 페이지
======================================== */
#job-list-wrap {padding: 15px;}

/* 페이지 헤더 */
.page-header {background: #fff; /* border: 1px solid #3498db; */border-radius: 12px; padding: 10px 0;/* margin-bottom: 20px; */}
.page-header .header-top {margin-bottom: 0;}

.board-title {font-size: 22px; font-weight: 700; color: #333; margin: 0 0 8px 0;}
.board-title .fa {color: #007bff;}

.board-title {font-size: 22px; font-weight: 700; margin: 0; color: #333; /* padding: 8px 20px; */ width: 100%; height: 50px;/*  background-color: #e5efef; */}
.board-title i {color: #3498db; margin-right: 8px;}

.total-count {font-size: 14px; color: #666; margin: 0;}
.total-count strong {color: #007bff; font-weight: 700;}

.header-actions {/*text-align: right;*/ margin-bottom: 10px;}
/*
.btn-write {display: inline-block; padding: 10px 20px; background: #007bff; color: #fff !important; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 14px;}
.btn-write:hover {background: #0056b3;}
*/

.btn-write {display: inline-block; padding: 10px 20px; background: #459fff; color: #fff !important; border-radius: 6px; text-decoration: none; font-weight: 600; width: 100%; height: 50px; text-align: center; font-size: 18px; text-shadow: 0.5px 0.5px 2px #000; transition: 0.3s all;}
.btn-write:hover {background: #007bff;}


/* ========================================
   필터 섹션
======================================== */
.filter-section {margin-bottom: 10px; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden;}
.filter-toggle {width: 100%; padding: 15px; background: #f8f9fa; border: none; text-align: left; font-size: 18px; font-weight: 600; color: #333; cursor: pointer; display: flex; justify-content: space-between; align-items: center;}
.filter-toggle:active {background: #e9ecef;}
.filter-toggle .arrow {transition: transform 0.3s;}
.filter-toggle .arrow.active {transform: rotate(180deg);}
.filter-collapse {display: none; padding: 15px 20px 5px; background: #fff;}

.job-filter-form .form-group {margin-bottom: 15px;}
.job-filter-form label {display: block; font-size: 14px; font-weight: 600; color: #333; margin-bottom: 6px;}
.job-filter-form .form-control {width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 16px;}

.search-input-group {display: flex; gap: 8px;}
.search-field {width: 100px; flex-shrink: 0;}

.filter-buttons {display: flex; gap: 8px; margin-top: 20px;}

.btn-search, .btn-reset {flex: 1; padding: 12px; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer;}
.btn-search {background: #007bff; color: #fff;}
.btn-search:active {background: #0056b3;}
.btn-reset {background: #6c757d; color: #fff;}
.btn-reset:active {background: #5a6268;}

/* ========================================
   리스트 도구바
======================================== */
.list-toolbar {display: flex; justify-content: space-between; align-items: center; padding: 5px 0; margin-bottom: 15px; border-bottom: 2px solid #e0e0e0;}

.search-result {font-size: 14px; color: #666;}
.search-result strong {color: #007bff;}

.view-mode-toggle {display: flex; gap: 4px;}

.mode-btn {padding: 6px 12px; background: #fff; border: 1px solid #ddd; border-radius: 4px; color: #666; text-decoration: none; font-size: 14px;}
.mode-btn.active {background: #007bff; color: #fff; border-color: #007bff;}

/* ========================================
   공고 리스트 (공통)
======================================== */
.job-items {margin-bottom: 20px;}
.job-item {margin-bottom: 15px; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; transition: all 0.2s;}
.job-item:active {transform: scale(0.98);}
.job-item.highlight {background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%); border-color: #ffc107;}
.job-link {display: block; padding: 15px; color: inherit; text-decoration: none;}

/* 프리미엄 뱃지 */
.premium-badge {display: inline-block; padding: 4px 10px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border-radius: 20px; font-size: 11px; font-weight: 600; margin-bottom: 8px;}
.premium-badge .fa {margin-right: 3px;}

/* 회사명 */
.company-name {font-size: 14px; color: #666; font-weight: 600; margin-bottom: 6px;}
.company-name .fa {color: #999;}

/* 공고 제목 */
.job-title {font-size: 16px; font-weight: 700; color: #333; margin: 0 0 12px 0; line-height: 1.4;}

/* 공고 정보 */
.job-info {display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px;}

.info-item {display: inline-flex; align-items: center; font-size: 14px; color: #666; padding: 4px 10px; background: #f8f9fa; border-radius: 4px;}
.info-item .fa {color: #999; font-size: 12px;}
.info-item.salary {background: #e7f3ff; color: #007bff; font-weight: 600;}

/* 메타 정보 */
.job-meta {display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid #f0f0f0;}

.meta-left {font-size: 12px; color: #999;}
.meta-left .date {margin-right: 10px;}
.meta-left .fa {margin-right: 3px;}

.dday {display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 700;}
.dday.normal {background: #e3f2fd; color: #1976d2;}
.dday.urgent {background: #fff3e0; color: #f57c00;}
.dday.today {background: #ffebee; color: #c62828;}
.dday.ended {background: #f5f5f5; color: #9e9e9e;}

/* ========================================
   검색 결과 없음
======================================== */
.no-results {text-align: center; padding: 60px 20px;}
.no-results .fa {font-size: 48px; color: #ccc; margin-bottom: 15px;}
.no-results p {font-size: 16px; color: #666; margin: 10px 0;}
.no-results small {font-size: 14px; color: #999;}

/* ========================================
   페이징
======================================== */
.pagination-wrap {text-align: center; padding: 20px 0;}

/* ========================================
   상세 페이지
======================================== */
#job-view-wrap {padding: 15px;}

/* 상단 헤더 */
.job-header {background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.05);}
.job-badges {margin-bottom: 12px;}
.job-badge, .dday-badge {display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; margin-right: 6px; margin-bottom: 6px;}

.badge-premium {background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff;}
.badge-highlight {background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: #fff;}

.job-header .company-name {font-size: 14px; color: #007bff; margin-bottom: 10px;}
.job-header .job-title {font-size: 20px; font-weight: 700; color: #333; margin: 0 0 12px 0; line-height: 1.3;}
.job-header .job-meta {border-top: none; padding-top: 0;}

/* 주요 정보 박스 */
.job-info-box {background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.05);}
.info-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px;}
.info-item {background: transparent;}
.info-label {font-size: 14px; color: #999; margin-bottom: 4px; text-transform: uppercase;}
.info-value {font-size: 14px; color: #333; font-weight: 500;}

.salary-info {padding: 15px; background: linear-gradient(135deg, #e3f2fd 0%, #fff 100%); border-radius: 6px; border-left: 4px solid #007bff;}
.salary-label {font-size: 14px; color: #666; margin-right: 8px;}
.salary-value {font-size: 18px; color: #007bff; font-weight: 700;}

/* 액션 버튼 */
.action-buttons {display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 15px; margin-bottom: 15px;}
.btn-action {padding: 12px; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; text-align: center;}
.btn-apply {background: #007bff; color: #fff;}
.btn-scrap {background: #6c757d; color: #fff;}
.btn-share {background: #28a745; color: #fff; grid-column: 1 / -1;}

/* 본문 내용 */
.job-content, .company-info {background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.05);}

.content-title {font-size: 16px; font-weight: 700; color: #333; margin: 0 0 15px 0; padding-bottom: 10px; border-bottom: 2px solid #f0f0f0;}
.content-title .fa {color: #007bff;}
.content-body {font-size: 14px; line-height: 1.8; color: #333;}
.content-body img {max-width: 100%; height: auto; border-radius: 6px; margin: 15px 0;}

/* 첨부파일 */
.view-files {margin-top: 20px; padding-top: 20px; border-top: 1px solid #f0f0f0;}
.view-files h4 {font-size: 14px; font-weight: 700; color: #333; margin: 0 0 10px 0;}

.file-item {margin-bottom: 8px;}
.file-item a {display: block; padding: 10px; background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 6px; color: #333; text-decoration: none; font-size: 14px;}
.file-item a:active {background: #e9ecef;}
.file-size {color: #999; font-size: 12px;}

/* 기업정보 */
.info-notice {text-align: center; padding: 30px; color: #999;}

/* 하단 버튼 */
.view-footer {margin-top: 20px;}

.footer-buttons {display: flex; gap: 8px;}
.footer-buttons a {flex: 1; padding: 12px; text-align: center; border-radius: 6px; text-decoration: none; font-size: 14px; font-weight: 600;}

.btn-list {background: #6c757d; color: #fff !important;}
.btn-edit {background: #ffc107; color: #333 !important;}
.btn-delete {background: #dc3545; color: #fff !important;}

/* ========================================
   태블릿 이상 (768px+)
======================================== */
@media (min-width: 768px) {
	#job-list-wrap, #job-view-wrap {max-width: 1200px; margin: 0 auto; padding: 20px;}
/* 	.board-title {font-size: 28px;} */
	.job-items.grid-mode {display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px;}
	.job-title {font-size: 18px;}
	.job-header .job-title {font-size: 24px;}
	.info-grid {grid-template-columns: repeat(4, 1fr);}
	.action-buttons {grid-template-columns: repeat(3, 1fr);}
	.btn-share {grid-column: auto;}
}

/* ========================================
   데스크톱 (992px+)
======================================== */
@media (min-width: 992px) {
	.job-items.grid-mode {grid-template-columns: repeat(3, 1fr);}
}
@media (max-width: 767px) {
	.filter-section {margin-bottom: 5px;}
}
@media (max-width: 440px) {
	#job-list-wrap {padding: 0;}
}