/* 노인 전용 현재 구인 가능한 일자리 리스트 페이지 */

/* 기본 스타일 리셋 및 시니어 친화적 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "system-ui", "-apple-system", "BlinkMacSystemFont", "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f5f5f5;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 스크린 리더 전용 텍스트 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 헤더 영역 */
header {
    background-color: #ffffff;
    padding: 30px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 32px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.notice {
    font-size: 16px;
    color: #666;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

/* 필터 및 검색 영역 */
.filter-section {
    background-color: #ffffff;
    padding: 25px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 검색 입력창 */
.search-section {
    width: 100%;
}

#searchInput {
    width: 100%;
    font-size: 18px;
    padding: 16px 20px;
    min-height: 56px;
    border: 2px solid #ccc;
    border-radius: 6px;
    background-color: #ffffff;
    color: #1a1a1a;
}

#searchInput:focus {
    outline: 3px solid #4a90e2;
    outline-offset: 2px;
    border-color: #4a90e2;
}

#searchInput::placeholder {
    color: #999;
}

/* 일자리 리스트 영역 */
.jobs-section {
    margin-bottom: 40px;
}

.jobs-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.loading,
.no-results {
    text-align: center;
    font-size: 20px;
    color: #666;
    padding: 40px 20px;
    background-color: #ffffff;
    border-radius: 8px;
}

/* 일자리 카드 */
.job-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s ease;
}

.job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.job-card h3 {
    font-size: 24px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.4;
}

.job-type-badge {
    display: inline-block;
    font-size: 16px;
    padding: 6px 14px;
    background-color: #e8f2ff;
    color: #4a90e2;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 500;
}

.job-description {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-recruit {
    font-size: 18px;
    color: #1a1a1a;
    font-weight: 500;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

/* 조건부 안내 문구 */
.job-notice {
    margin-top: 15px;
    padding: 12px 16px;
    background-color: #fff9e6;
    border-left: 4px solid #ffa500;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

.job-notice.cafe-notice {
    background-color: #e6f3ff;
    border-left-color: #4a90e2;
}

/* 반응형 디자인 */
@media (min-width: 768px) {
    .jobs-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    body {
        padding: 30px;
    }

    .jobs-container {
        grid-template-columns: repeat(3, 1fr);
    }

    header h1 {
        font-size: 36px;
    }
}

/* 모바일 최적화 */
@media (max-width: 767px) {
    body {
        padding: 15px;
        font-size: 16px;
    }

    header {
        padding: 20px 15px;
    }

    header h1 {
        font-size: 26px;
    }

    .subtitle {
        font-size: 16px;
    }

    .filter-section {
        padding: 20px 15px;
    }

    .job-card {
        padding: 20px;
    }

    .job-card h3 {
        font-size: 22px;
    }
}

