/**
 * 채용 공고 목록 페이지 CSS 스타일
 */

/* 채용 히어로 섹션 */
.job-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(45deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    text-align: center;
}

.job-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.job-hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    opacity: 0.9;
}

/* 검색 및 필터 */
.job-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 850px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.filter-controls {
    display: flex;
    gap: 15px;
}

.filter-controls select {
    min-width: 150px;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

/* 채용 공고 목록 섹션 */
.job-list-section {
    background-color: #f9f9fa;
    padding: 60px 0;
}

.job-count {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.job-count span {
    font-weight: 500;
    color: var(--gray);
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-control label {
    color: var(--gray);
    font-size: 0.95rem;
}

.sort-control select {
    padding: 8px 30px 8px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 0.9rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}

/* 채용 카드 스타일 */
.job-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.job-item {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.job-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.job-date {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.job-status.open {
    background-color: #e6f7ee;
    color: #28a745;
}

.job-status.closed {
    background-color: #f8f9fa;
    color: var(--gray);
}

.job-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.job-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.job-info span {
    font-size: 0.9rem;
    color: var(--gray);
    display: flex;
    align-items: center;
}

.job-info span i {
    margin-right: 5px;
    color: var(--primary);
}

.job-summary {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 20px;
}

.job-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.btn-bookmark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background-color: white;
    color: var(--gray);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-bookmark:hover, .btn-bookmark.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-bookmark.active i {
    font-weight: 900;
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.pagination-numbers {
    display: flex;
    align-items: center;
}

.pagination-number, .pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    background-color: white;
}

.pagination-number:hover, .pagination-btn:hover {
    background-color: #f0f0f0;
}

.pagination-number.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-dots {
    margin: 0 5px;
    color: var(--gray);
}

.pagination-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 검색 결과 없음 */
.no-results {
    text-align: center;
    padding: 60px 0;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--gray);
    font-size: 1.8rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.no-results p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* 북마크 섹션 */
.bookmark-section {
    background-color: white;
    border-top: 1px solid #eee;
}

.no-bookmarks {
    text-align: center;
    padding: 40px 0;
}

.no-bookmarks-icon {
    width: 80px;
    height: 80px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--gray);
    font-size: 1.8rem;
}

.no-bookmarks h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.no-bookmarks p {
    color: var(--gray);
}

/* 알림 설정 섹션 */
.notification-section {
    background-color: #f9f9fa;
}

.notification-card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.notification-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(231, 40, 85, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 200px;
}

.notification-content h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.notification-content p {
    color: var(--gray);
    line-height: 1.6;
}

.notification-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

/* FAQ 섹션 - 수정됨 */
.faq-section {
    background-color: #f9f9fa;
    padding: 60px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px 30px;
    background-color: white;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    transition: all 0.3s ease;
    color: var(--primary);
    font-size: 0.9rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 30px;
}

.faq-answer p {
    color: var(--gray);
    line-height: 1.6;
    padding-bottom: 20px;
}

.faq-item.active .faq-question {
    color: var(--primary);
    border-bottom: 1px solid #f0f0f0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 300px; /* 충분히 큰 값으로 설정 */
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modal-in 0.3s ease;
}

@keyframes modal-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    color: var(--secondary);
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--gray);
    cursor: pointer;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
}

.modal-icon.success {
    background-color: #e6f7ee;
    color: #28a745;
}

.modal-body p {
    color: var(--gray);
    line-height: 1.6;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* 헬퍼 클래스 */
.text-center {
    text-align: center;
}

/* 반응형 디자인 */
@media screen and (max-width: 992px) {
    .job-hero {
        padding: 100px 0 60px;
    }
    
    .job-hero h1 {
        font-size: 2.5rem;
    }
    
    .notification-card {
        padding: 30px;
    }
}

@media screen and (max-width: 768px) {
    .job-hero h1 {
        font-size: 2.2rem;
    }
    
    .job-filter {
        flex-direction: column;
    }
    
    .job-item {
        padding: 20px;
    }
    
    .job-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .notification-card {
        flex-direction: column;
        text-align: center;
    }
    
    .notification-icon {
        margin: 0 auto;
    }
}

@media screen and (max-width: 576px) {
    .job-hero {
        padding: 80px 0 50px;
    }
    
    .job-hero h1 {
        font-size: 2rem;
    }
    
    .job-title {
        font-size: 1.2rem;
    }
    
    .pagination-number, .pagination-btn {
        width: 35px;
        height: 35px;
        margin: 0 3px;
    }
    
    .pagination-numbers {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
    }
}