/* ========================================
   구인구직 KEYWORK 브랜드 스타일 - 새로 작성
   ======================================== */

/* 네이버밴드 로딩 애니메이션 - KEYWORK 브랜드 적용 */
.naver-band-loading {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 48px 32px;
    margin: 24px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.naver-band-loading .loading-animation {
    animation: bounce 1.5s infinite ease-in-out;
    font-size: 40px;
    margin-bottom: 20px;
}

.naver-band-loading h3 {
    color: var(--brand-primary);
    font-size: 20px;
    margin: 16px 0 12px 0;
    font-weight: 700;
}

.naver-band-loading p {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 12px 0;
    line-height: 1.5;
}

.loading-subtitle {
    color: var(--brand-primary);
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0 12px 0;
}

.loading-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: var(--brand-primary);
    border-radius: 50%;
    display: inline-block;
    animation: loading-wave 1.4s linear infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-10px) scale(1.1);
    }
    60% {
        transform: translateY(-5px) scale(1.05);
    }
}

@keyframes loading-wave {
    0%, 40%, 100% {
        transform: scaleY(0.4);
        opacity: 0.5;
    }
    20% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* 구인구직 메인 섹션 스타일링 - KEYWORK 브랜드 적용 */
.jobs-main-section {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 120px;
    background: var(--bg-secondary);
    min-height: calc(100vh - 120px);
}

/* 게시판 탭 - KEYWORK 브랜드 스타일 적용 */
.board-tabs {
    display: flex;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 8px;
    margin-bottom: 24px;
    gap: 8px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.board-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    min-height: 56px;
}

.board-tab:hover {
    background: var(--brand-light);
    color: var(--brand-primary);
    transform: translateY(-2px);
}

.board-tab.active {
    background: #E5E7EB;
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.board-tab .tab-icon {
    font-size: 20px;
}

.board-tab .tab-text {
    font-size: 15px;
    font-weight: inherit;
}

/* 섹션 헤더 스타일 */
.jobs-list-section {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

/* 구직 목록 영역 */
.jobs-list {
    padding: 24px;
}

/* 게시글 아이템 스타일 - KEYWORK 브랜드 적용 */
.job-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 20px;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.job-item:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 8px 25px rgba(20, 40, 160, 0.15), 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.job-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.job-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.job-badge.badge-worker {
    background: var(--brand-light);
    color: var(--brand-primary);
}

.job-badge.badge-tech {
    background: #f0f9ff;
    color: var(--tech-blue);
}

.job-badge.badge-company {
    background: #f0fdf4;
    color: var(--company-green);
}

.job-badge.badge-safety {
    background: #fffbeb;
    color: var(--worker-orange);
}

.job-badge.badge-room {
    background: #f0fdf4;
    color: var(--company-green);
}

.job-badge.badge-no-room {
    background: #fef2f2;
    color: var(--safety-red);
}

.job-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.job-main {
    margin-bottom: 16px;
}

.job-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.job-company {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.job-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.job-detail {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-introduction, .job-description {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    background: var(--bg-hover);
    padding: 12px;
    border-radius: 8px;
    margin-top: 8px;
}

.job-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

.contact-btn, .detail-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.contact-btn {
    background: var(--brand-primary);
    color: white;
    border: 2px solid var(--brand-primary);
}

.contact-btn:hover {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 40, 160, 0.3);
}

.detail-btn {
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}

.detail-btn:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 40, 160, 0.3);
}

/* 빈 상태 메시지 - KEYWORK 브랜드 스타일 */
.no-jobs-message {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin: 24px 0;
    box-shadow: var(--box-shadow);
}

.no-jobs-message .no-jobs-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.no-jobs-message h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.no-jobs-message p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

/* 권한 관련 스타일 */
.board-tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .jobs-main-section {
        padding: 16px;
        padding-bottom: 100px;
    }
    
    .board-tabs {
        flex-direction: row;
        gap: 4px;
        padding: 4px;
    }
    
    .board-tab {
        padding: 12px 8px;
        font-size: 14px;
        min-height: 46px;
        gap: 6px;
    }
    
    .job-item {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .job-title {
        font-size: 18px;
    }
    
    .job-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-btn, .detail-btn {
        width: 100%;
        text-align: center;
    }
}

/* 스마트 매칭 시스템 - 깔끔한 화이트 디자인 */
.matching-notification-message {
    background: white !important;
    border: 2px solid #E5E7EB !important;
    border-left: 4px solid #1428A0 !important;
    padding: 32px 28px !important;
    border-radius: 12px !important;
    margin: 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    text-align: left !important;
    position: relative !important;
    overflow: hidden !important;
}

.matching-notification-message::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #E8EFFF 0%, #F8F9FA 100%);
    border-radius: 0 0 0 100px;
    opacity: 0.6;
}

.matching-notification-message .notification-icon {
    display: none !important;
}

.matching-notification-message * {
    color: #000000 !important;
}

.matching-notification-message h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    color: #000000 !important;
    text-shadow: none !important;
}

.matching-notification-message p {
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
    color: #000000 !important;
    opacity: 1 !important;
}

.matching-notification-message .matching-subtitle {
    font-size: 14px !important;
    color: #000000 !important;
    margin-bottom: 0 !important;
}

.matching-notification-message .matching-count {
    color: #000000 !important;
}


.matching-notification-message .matching-features {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 16px !important;
}

.matching-notification-message .feature-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 14px !important;
    color: #6B7280 !important;
}

.matching-notification-message .feature-item::before {
    content: '' !important;
    width: 6px !important;
    height: 6px !important;
    background: #1428A0 !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.matching-notification-message .matching-count {
    display: inline-block !important;
    background: #E8EFFF !important;
    color: #1428A0 !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-top: 16px !important;
}

/* ========================================
   구인구직 모달 스타일
   ======================================== */

/* 구인구직 모달 기본 컨테이너 */
.jobs-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
}

.jobs-modal[style*="block"] {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 구인구직 모달 컨텐츠 */
.jobs-modal-content {
    position: relative;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 구인구직 모달 헤더 */
.jobs-modal-header {
    padding: 32px 32px 24px;
    background: white;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.jobs-modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--brand-primary);
    padding-right: 0;
}

.jobs-modal-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

/* 구인구직 모달 바디 */
.jobs-modal-body {
    padding: 24px 32px 32px;
    max-height: calc(90vh - 150px);
    overflow-y: auto;
    flex: 1;
}

/* 구인구직 모달 푸터 */
.jobs-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 32px 32px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: white;
}

/* 구인구직 모달 닫기 버튼 */
.jobs-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.jobs-modal-close:hover {
    background: rgba(0,0,0,0.1);
    color: #333;
    transform: scale(1.1);
}

/* 구인구직 버튼 스타일 */
.jobs-modal-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    color: var(--text-primary);
}

.jobs-modal-btn.secondary {
    border: 2px solid #e1e5e9;
    background: white;
    color: var(--text-primary);
}

.jobs-modal-btn.secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.jobs-modal-btn.primary {
    background: var(--brand-primary);
    color: white;
    border: 2px solid var(--brand-primary);
}

.jobs-modal-btn.primary:hover {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 40, 160, 0.3);
}

/* 폼 관련 스타일 */
.jobs-modal .form-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}

.jobs-modal .section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.jobs-modal .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.jobs-modal .form-group:last-child {
    margin-bottom: 0;
}

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

.jobs-modal .form-group label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* 구인구직 모달 전용 폼 스타일 */
.jobs-modal input[type="text"],
.jobs-modal input[type="tel"],
.jobs-modal input[type="email"],
.jobs-modal input[type="number"],
.jobs-modal select,
.jobs-modal textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s ease;
    background: white;
    color: var(--text-primary);
    box-sizing: border-box;
}

.jobs-modal input[type="text"]:focus,
.jobs-modal input[type="tel"]:focus,
.jobs-modal input[type="email"]:focus,
.jobs-modal input[type="number"]:focus,
.jobs-modal select:focus,
.jobs-modal textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(20, 40, 160, 0.1);
}

.jobs-modal textarea {
    resize: vertical;
    min-height: 100px;
}

/* 읽기 전용 필드 */
.jobs-modal input[readonly] {
    background-color: #f8f9fa;
    color: #495057;
    border-color: #28a745;
    cursor: not-allowed;
}

/* 라디오 버튼 그룹 스타일링 */
.jobs-modal .radio-group {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.jobs-modal .radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
}

.jobs-modal .radio-option:hover {
    border-color: var(--brand-primary);
    background: rgba(20, 40, 160, 0.02);
}

.jobs-modal .radio-option input[type="radio"] {
    width: auto;
    margin: 0;
}

.jobs-modal .radio-option input[type="radio"]:checked + .radio-text {
    color: var(--brand-primary);
    font-weight: 600;
}

.jobs-modal .radio-option:has(input:checked) {
    border-color: var(--brand-primary);
    background: rgba(20, 40, 160, 0.05);
}

.jobs-modal .radio-text {
    font-size: 14px;
    color: var(--text-primary);
}

/* 지역 선택 버튼 스타일링 */
.jobs-modal .region-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.jobs-modal .region-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    outline: none;
}

.jobs-modal .region-btn:hover {
    border-color: var(--brand-primary);
    background: rgba(20, 40, 160, 0.05);
    color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(20, 40, 160, 0.15);
}

.jobs-modal .region-btn.selected {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
    font-weight: 600;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 40, 160, 0.3);
}

.jobs-modal .region-btn.selected:hover {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: white;
}

/* 폼 도움말 텍스트 */
.jobs-modal .form-help {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.jobs-modal .required {
    color: #dc3545;
    font-weight: bold;
}