/* 채용정보 페이지 전용 스타일 */

/* 페이지 헤더 */
.page-header {
    background: linear-gradient(135deg, rgb(102, 234, 112) 0%, rgb(77, 162, 83) 100%);
    color: white;
    padding: 60px 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 검색 및 필터 섹션 */
.job-filter {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 1;
}

.search-box input {
    padding-left: 45px;
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: rgb(0, 128, 0);
    box-shadow: 0 0 0 0.2rem rgba(0, 128, 0,0.5);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-filter {
    padding: 8px 20px;
    border-radius: 20px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    border-color: rgb(21, 78, 12);
    color: rgb(37, 143, 18);
    background: #f8f9ff;
}

.btn-filter.active {
    background: rgb(37, 143, 18);
    border-color: rgb(21, 78, 12);
    color: white;
}

/* 채용공고 개수 */
.job-count {
    font-size: 1.1rem;
    color: #666;
}

.job-count strong {
    color: rgb(22, 171, 22);
    font-size: 1.3rem;
}

/* 채용정보 카드 스타일 */
.job-info {
    background: #f8f9fa;
    min-height: 500px;
}

.job-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 4px solid rgb(0, 128, 0);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-left-color: rgb(101, 235, 101);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.job-header h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.job-type {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: linear-gradient(135deg, rgb(37, 213, 28) 0%,rgb(73, 165, 73) 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 15px;
}

.job-details {
    margin-bottom: 20px;
    flex: 1;
}

.job-details p {
    margin-bottom: 10px;
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.job-details i {
    color: rgb(37, 143, 18);
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.skill-tag {
    background: #f0f0f0;
    color: #666;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgb(0, 128, 64);
    color: white;
    transform: translateY(-2px);
}

.job-footer {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.job-footer .btn {
    flex: 1;
    border-radius: 20px;
    font-weight: 500;
    padding: 8px 15px;
}

.job-footer .btn-primary {
   /*  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: linear-gradient(135deg, rgb(31, 176, 23) 0%, rgb(73, 165, 78) 100%);
    border: none;
}

.job-footer .btn-primary:hover {
    /* background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); */
    background: linear-gradient(135deg, rgb(31, 176, 23) 0%, rgb(73, 165, 78) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 128, 128,0.4)
}

.job-footer .btn-outline-primary {
    border-color: rgb(37, 143, 18);
    color: rgb(37, 143, 18);
}

.job-footer .btn-outline-primary:hover {
    background: rgb(37, 143, 18);
    color: white;
    transform: translateY(-2px);
}

/* 검색 결과 없음 */
#noResults {
    min-height: 300px;
}

#noResults i {
    opacity: 0.3;
}

/* 모달 스타일 */
#jobDetailModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

#jobDetailModal .modal-header {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background: linear-gradient(135deg, rgb(20, 152, 20) 0%, rgb(21, 78, 12) 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

#jobDetailModal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

#jobDetailModal .modal-body {
    padding: 30px;
}

.job-detail-section {
    margin-bottom: 25px;
}

.job-detail-section h6 {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.job-detail-section p,
.job-detail-section ul {
    color: #666;
    line-height: 1.8;
}

.job-detail-section ul {
    padding-left: 20px;
}

.job-detail-section li {
    margin-bottom: 8px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        margin-top: 15px;
    }
    
    .btn-filter {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .job-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .job-type {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .job-card {
        padding: 20px;
    }
    
    .job-footer {
        flex-direction: column;
    }
    
    .job-footer .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .search-box input {
        font-size: 0.9rem;
    }
    
    .job-header h5 {
        font-size: 1.1rem;
    }
    
    .job-details p {
        font-size: 0.9rem;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-card {
    animation: fadeInUp 0.5s ease-out;
}

/* 로딩 상태 */
.job-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 숨김 처리 */
.job-card.hidden {
    display: none;
}

