@charset "UTF-8";

body {
    font-family: 'Malgun Gothic', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
    padding-bottom: 100px; /* 푸터 공간 확보 */
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
}

.job-list {
    list-style: none;
    padding: 0;
}

.job-item {
    background-color: white;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.job-item.urgent {
    background-color: #fffde7;
}

/* 마감 임박 공고 스타일 */
.job-item.deadline-soon {
    background-color: #ffebee;
    /* 옅은 빨간색 */
}

/* 최근 등록 공고 스타일 */
.job-item.recently-posted {
    background-color: #fffde7;
    /* 연노랑색 */
}

/* 지난 채용공고 스타일 */
.job-item.expired {
    background-color: #f9f9f9;
    /* 더 옅은 회색으로 변경 (#f5f5f5 -> #f9f9f9) */
    color: #888;
}

.job-item.expired .job-title,
.job-item.expired .job-company,
.job-item.expired .job-date {
    color: #888;
}

.job-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.job-title {
    font-size: 18px;
    color: #1a73e8;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    font-weight: bold;
}

.job-title:hover {
    color: #1557b0;
}

.job-company {
    color: #444;
    font-size: 16px;
    margin-bottom: 8px;
}

.job-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-description {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.job-meta {
    font-size: 14px;
    color: #666;
}

.d-day {
    background-color: #e8f0fe;
    color: #1a73e8;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: auto;
    font-size: 14px;
}

.d-day.expired {
    background-color: #f8d7da;
    color: #721c24;
}

.posted-date {
    color: #666;
    font-size: 14px;
}

.last-update {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    background-color: white;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* 필터 컨테이너 스타일 */
.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.keyword-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 0;
    width: auto;
}

.keyword-button {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-block;
    max-width: 100%;
    overflow: visible;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-decoration: none;
}

.keyword-button.active {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.3);
    transform: translateY(-1px);
}

.keyword-button:not(.active) {
    background-color: white;
    color: #5f6368;
    border: 1px solid #e0e0e0;
}

.keyword-button:hover:not(.active) {
    background-color: #f8f9fa;
    border-color: #1a73e8;
    color: #1a73e8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.source-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 8px;
}

.source-saramin {
    background-color: #e8f0fe;
    color: #1a73e8;
}

.source-jobkorea {
    background-color: #fce8e6;
    color: #d93025;
}

/* 정렬 버튼 스타일 */
.sort-container {
    margin-bottom: 0;
    text-align: right;
}

.sort-select {
    padding: 10px 36px 10px 16px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%235f6368' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sort-select:hover {
    border-color: #1a73e8;
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.1);
}

.sort-select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* 페이지네이션 스타일 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 8px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background-color: white;
    border: 1px solid #e0e0e0;
    color: #5f6368;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: #f8f9fa;
    border-color: #1a73e8;
    color: #1a73e8;
}

.page-link.active {
    background-color: #1a73e8;
    border-color: #1a73e8;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(26, 115, 232, 0.2);
}

.page-link.disabled {
    background-color: #f5f5f5;
    border-color: #eee;
    color: #aaa;
    cursor: not-allowed;
    pointer-events: none;
}

/* 푸터 스타일 */
.footer {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid #eee;
    text-align: center;
    color: #888;
    font-size: 13px;
    line-height: 1.6;
}

.footer-info {
    margin-bottom: 10px;
}

/* 모바일 화면 스타일 */
@media (max-width: 768px) {
    .app-header h1 {
        margin-top: 15px;
        font-size: 20px;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
}

/* Job Category Group Styles */
.job-category-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    background-color: #e9ecef; /* 옅은 회색 배경 */
    padding: 16px 20px;
    border-radius: 16px;
    width: fit-content; /* 콘텐츠에 맞게 너비 조절 */
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.category-label-badge {
    display: inline-block;
    padding: 4px 0;
    color: #5f6368;
    font-size: 14px;
    font-weight: 700;
    background: none;
    border: none;
    box-shadow: none;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-category-group .keyword-button {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 20px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: none;
}

.job-category-group .keyword-button:hover:not(.active) {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.job-category-group .keyword-button.active {
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.25);
}



/* Platform Buttons */
.platform-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 8px;
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    color: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.platform-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    color: white;
}

.platform-btn.saramin {
    background-color: #1a73e8; /* Saramin Blue */
}

.platform-btn.saramin:hover {
    background-color: #1557b0;
}

.platform-btn.jobkorea {
    background-color: #d93025; /* JobKorea Red (based on existing styles) */
}

.platform-btn.jobkorea:hover {
    background-color: #b02a20;
}

/* Adjust job title since it's no longer a link */
.job-title {
    color: #333;
    cursor: default;
}

.job-title:hover {
    color: #333;
}
