@charset "UTF-8";

html {
    max-width: 100%;
    overflow-x: hidden;
}

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

.job-push-cta {
    display: block;
    margin: 0 0 14px;
    text-align: center;
}

.job-push-cta[hidden] {
    display: none;
}

.job-push-cta-btn {
    width: auto;
    max-width: 100%;
    border: 1px solid #1a73e8;
    border-radius: 8px;
    background: #1a73e8;
    color: #ffffff;
    padding: 9px 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.18);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.job-push-cta-btn:hover {
    border-color: #1557b0;
    background: #1557b0;
    box-shadow: 0 6px 14px rgba(26, 115, 232, 0.24);
    transform: translateY(-1px);
}
.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;
    cursor: pointer;
}

.favorite-company-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    min-width: 40px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    background: #ffffff;
    color: #52606d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.favorite-company-btn:hover {
    border-color: #1a73e8;
    background: #f8fbff;
    color: #1557b0;
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.14);
    transform: translateY(-1px);
}

.favorite-company-btn.active {
    border-color: #f2b600;
    background: #fff8db;
    color: #9a6a00;
    box-shadow: 0 4px 8px rgba(242, 182, 0, 0.16);
}

.favorite-company-btn:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.favorite-company-icon {
    width: 16px;
    font-size: 16px;
    line-height: 1;
    text-align: center;
}

.favorite-company-label {
    white-space: nowrap;
}

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

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

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

/* 지난 채용공고 스타일 */
.job-item.focused-from-link {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.16), 0 8px 18px rgba(15, 23, 42, 0.12);
}

.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.ongoing-job {
    background-color: #fffde7;
    /* 연노랑색 */
    border-left: 4px solid #ffc107;
}

.ongoing-badge {
    display: inline-block;
    padding: 2px 8px;
    margin-left: 8px;
    font-size: 12px;
    font-weight: 600;
    background-color: #ffc107;
    color: #333;
    border-radius: 4px;
    vertical-align: middle;
}

.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-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.job-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.job-type-badge.full-time {
    background-color: #e3f2fd;
    color: #1565c0;
}

.job-type-badge.contract {
    background-color: #fff3e0;
    color: #e65100;
}

.job-region {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background-color: #f5f5f5;
    color: #666;
}

.job-view-count {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background-color: #eef6ff;
    color: #1a73e8;
}

.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;
}

/* 섹션 라벨 */
.section-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    font-weight: 500;
}

/* 필터 블록 버튼 */
.filter-block-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-block-btn:hover {
    border-color: #1a73e8;
    color: #1a73e8;
    background-color: #f8f9fa;
}

.filter-block-btn.active {
    background-color: #e8f0fe;
    border-color: #1a73e8;
    color: #1a73e8;
}

.filter-popup-btn::before {
    content: "";
    width: 14px;
    height: 14px;
    background-color: currentColor;
    mask: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6H20M7 12H17M10 18H14' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.status-select {
    min-width: 126px;
}

/* 필터 모달 오버레이 */
.filter-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2100;
    justify-content: center;
    align-items: flex-start;
    padding: var(--app-modal-top-offset) 20px var(--app-modal-safe-bottom-offset);
    overflow-y: auto;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.filter-modal-overlay.active {
    display: flex;
}

/* 필터 모달 */
.filter-modal {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 360px;
    width: 100%;
    max-height: var(--app-modal-safe-height);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    animation: modalSlideIn 0.2s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.filter-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.filter-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #888;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.filter-modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.filter-modal-content {
    flex: 1 1 auto;
    padding: 20px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.filter-modal-section {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.filter-modal-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.modal-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-choice {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    background-color: white;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.modal-choice:hover {
    background-color: #f0f0f0;
    border-color: #1a73e8;
}

.modal-choice input[type="radio"] {
    display: none;
}

.modal-choice:has(input[type="radio"]:checked) {
    background-color: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.filter-help {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.55;
    word-break: keep-all;
}

/* 모달 내 검색 폼 */
.modal-search-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.modal-search-type {
    padding: 10px 30px 10px 12px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    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 10px center;
    width: 85px;
    flex-shrink: 0;
}

.modal-search-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    min-width: 0;
}

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

/* 모달 액션 버튼 */
.filter-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.modal-btn-reset {
    padding: 10px 16px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-btn-reset:hover {
    background-color: #f0f0f0;
    color: #333;
}

.modal-btn-apply {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.3);
}

/* 정렬 및 갯수 컨테이너 */
.sort-count-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.job-count {
    font-size: 14px;
    color: #5f6368;
}

.job-count strong {
    color: #1a73e8;
    font-weight: 700;
}

/* 검색 컨테이너 스타일 */
.search-container {
    margin-bottom: 24px;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-type-select {
    padding: 12px 40px 12px 16px;
    font-size: 14px;
    font-weight: 500;
    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;
    min-width: 110px;
}

.search-type-select:hover {
    border-color: #1a73e8;
}

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

.search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-width: 200px;
    box-sizing: border-box;
}

.search-input:hover {
    border-color: #1a73e8;
}

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

.search-input::placeholder {
    color: #aaa;
}

.search-button {
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(26, 115, 232, 0.3);
    white-space: nowrap;
}

.search-button:hover {
    background: linear-gradient(135deg, #1557b0 0%, #0a3a83 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.4);
}

.search-button:active {
    transform: translateY(0);
}

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

.filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
}

.filter-container,
.filter-row,
.search-area,
.secondary-filter-row,
.sort-count-container,
.job-list,
.job-item,
.pagination,
.update-info {
    max-width: 100%;
    min-width: 0;
}

.secondary-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.status-toggle {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    background-color: #f6f8fa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.status-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 7px;
    color: #5f6368;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.status-toggle-btn:hover {
    color: #1a73e8;
}

.status-toggle-btn.active {
    background-color: #1a73e8;
    color: white;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.24);
}

.inline-filter-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.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;
    flex-wrap: wrap;
}

.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;
}

/* 모바일 화면 스타일 */
@media (max-width: 768px) {
    .app-header h1 {
        margin-top: 15px;
        font-size: 20px;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-type-select,
    .search-input,
    .search-button {
        width: 100%;
        min-width: unset;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .filter-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .search-area {
        display: flex;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        width: 100%;
        min-width: 0;
    }

    .region-filter-row {
        width: 100%;
    }

    .region-filter-row > .filter-block-btn {
        display: inline-flex !important;
        width: fit-content !important;
        max-width: 100%;
        margin-top: 0;
        align-self: flex-start;
    }

    .search-area .sort-select {
        width: 68px !important;
        min-width: 68px !important;
        flex-shrink: 0;
        padding-left: 10px;
        padding-right: 24px;
        background-position: right 8px center;
        font-size: 13px;
    }

    .search-area input[type="text"] {
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        flex: 1 1 0 !important;
        padding: 12px 10px !important;
        font-size: 13px;
    }

    .search-area .filter-block-btn {
        width: auto !important;
        min-width: fit-content !important;
        flex-shrink: 0;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 13px;
    }
}

/* 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;
    flex-wrap: wrap;
    min-width: 0;
}

.job-item > .platform-buttons {
    display: none;
}

.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);
    max-width: 100%;
}

.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;
}

.platform-btn.company_site {
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    -webkit-text-fill-color: #9a3412;
}

.platform-btn.company_site:hover {
    background-color: #ffedd5;
    border-color: #fb923c;
    color: #9a3412;
    -webkit-text-fill-color: #9a3412;
}

.platform-btn.public {
    background-color: #4caf50; /* 연두색/녹색 */
}

.platform-btn.public:hover {
    background-color: #388e3c;
}

.job-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 2300;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: var(--app-modal-top-offset) 16px var(--app-modal-safe-bottom-offset);
    overflow-y: auto;
    box-sizing: border-box;
}

.job-detail-modal[hidden] {
    display: none;
}

.job-detail-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.44);
}

.job-detail-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    max-height: var(--app-modal-safe-height);
    overflow-y: auto;
    padding: 22px 22px 28px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
    box-sizing: border-box;
}



.job-detail-modal-panel::after {
    content: "";
    position: sticky;
    bottom: -28px;
    display: block;
    height: 52px;
    margin: 0 -22px -28px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.58) 42%, rgba(255, 255, 255, 0.88));
}

.job-detail-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.job-detail-modal-kicker {
    margin: 0 0 8px;
    color: #1a73e8;
    font-size: 12px;
    font-weight: 900;
}

.job-detail-modal-title {
    margin: 0;
    color: #1f2933;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 900;
    word-break: keep-all;
}

.job-detail-modal-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: rgba(31, 41, 51, 0.08);
    color: #243445;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
}

.job-detail-modal-company-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.job-detail-modal-company {
    flex: 1 1 160px;
    min-width: 0;
    margin-top: 0;
    color: #52606d;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
}

.job-detail-modal-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
}

.job-detail-modal-info > div {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    padding: 3px 10px;
    border-radius: 12px;
    background: #f5f5f5;
    color: #666;
    box-sizing: border-box;
}

.job-detail-modal-info dt {
    flex: 0 0 auto;
    margin: 0 4px 0 0;
    color: #7b8794;
    font-size: 12px;
    font-weight: 700;
}

.job-detail-modal-info dd {
    min-width: 0;
    margin: 0;
    color: #1f2933;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.job-detail-mentor-advice-entry {
    margin-top: 28px;
}

.job-detail-mentor-advice-entry[hidden] {
    display: none;
}

.job-detail-mentor-comment-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-radius: 8px;
    background: #f3e8ff;
    color: #6d28d9;
    font-size: 14px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(109, 40, 217, 0.1);
}

.job-detail-mentor-comment-open-btn[hidden] {
    display: none;
}

.job-detail-mentor-comment-open-btn:hover {
    border-color: rgba(124, 58, 237, 0.38);
    background: #ede9fe;
}

.job-detail-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

.job-detail-modal-actions .platform-btn:only-child {
    grid-column: 1 / -1;
}

.job-detail-modal-actions .platform-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0 18px;
    font-size: 14px;
    text-align: center;
    white-space: normal;
    word-break: keep-all;
}

.job-detail-modal-expired-note {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    word-break: keep-all;
}

.job-detail-modal-share {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.job-detail-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    border: 1px solid #fee500;
    border-radius: 8px;
    background: #fee500;
    color: #191919;
    font-size: 14px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
}

.job-detail-copy-btn {
    border-color: #d0d7de;
    background: #ffffff;
    color: #1f2933;
}

.job-detail-mentor-ask-btn {
    border-color: #c4b5fd;
    background: #ede9fe;
    color: #5b21b6;
}

.job-detail-favorite-company-btn {
    position: static;
    flex: 0 0 auto;
    align-self: flex-start;
    margin-top: 1px;
}


.job-detail-chat-btn {
    border-color: #bfdbfe;
    background: #dbeafe;
    color: #1d4ed8;
}

.job-detail-chat-btn:hover {
    border-color: #93c5fd;
    background: #bfdbfe;
}

.job-detail-bamboo-ask-btn {
    border-color: #bef264;
    background: #d9f99d;
    color: #365314;
}

.job-detail-bamboo-ask-btn:hover {
    border-color: #a3e635;
    background: #bef264;
}

.job-detail-share-status {
    grid-column: 1 / -1;
    min-height: 18px;
    margin: 0;
    color: #5f6c7b;
    font-size: 12px;
    line-height: 1.5;
}

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

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

/* 필터 행 레이아웃 */
.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.search-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    flex-wrap: nowrap;
    min-width: 0;
}

.search-area input[type="text"] {
    flex: 1 1 160px;
    min-width: 0;
    width: auto;
    padding: 12px 14px;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    font-size: 14px;
    background-color: #fff;
    box-sizing: border-box;
}

.search-area input[type="text"]:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.search-area .filter-block-btn {
    justify-content: center;
}

.region-filter-row {
    width: 100%;
}

.secondary-filter-row .filter-block-btn,
.secondary-filter-row .sort-select {
    width: auto;
}

.search-submit-btn {
    min-width: 64px;
    justify-content: center;
    flex: 0 0 auto;
    text-decoration: none;
}

/* 직무 분류 드롭다운 */
.job-category-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #e9ecef;
    padding: 12px 16px;
    border-radius: 12px;
}

.category-label {
    font-size: 14px;
    font-weight: 700;
    color: #5f6368;
    white-space: nowrap;
}

.category-select {
    padding: 8px 36px 8px 12px;
    font-size: 14px;
    font-weight: 500;
    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 12px center;
    transition: all 0.2s ease;
    min-width: 140px;
}

.category-select:hover {
    border-color: #1a73e8;
}

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

/* 지역 필터 스타일 */
.region-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #f8f9fa;
    padding: 12px 16px;
    border-radius: 12px;
    width: fit-content;
}

.selected-count {
    font-size: 12px;
    color: #1a73e8;
    font-weight: 500;
}

/* 하단 업데이트 정보 */
.update-info {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin-top: 30px;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.update-info p {
    margin: 0;
}

.top-jobs-section {
    margin-bottom: 18px;
}

@media (min-width: 769px) {
    .job-category-scroll {
        padding-left: 0;
    }

    .job-category-fade-left {
        display: none;
    }
}

.top-jobs-card {
    background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
    border: 1px solid #d6e4ff;
    border-radius: 14px;
    padding: 18px 0 18px 20px;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.08);
    overflow: hidden;
}

.top-jobs-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.top-jobs-header h2 {
    margin: 0;
    font-size: 18px;
    color: #1f2937;
}

.top-jobs-header span {
    font-size: 13px;
    color: #6b7280;
}

.top-jobs-scroll-shell {
    position: relative;
}

.top-jobs-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    pointer-events: none;
    z-index: 2;
}

.top-jobs-fade-left {
    left: 0;
    background: linear-gradient(to right, #f8fbff 0%, rgba(248, 251, 255, 0) 100%);
}

.top-jobs-fade-right {
    right: 0;
    background: linear-gradient(to left, #f4f8ff 0%, rgba(244, 248, 255, 0) 100%);
}

.top-jobs-list {
    list-style: none;
    margin: 0;
    padding: 0 20px 2px 0;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.top-jobs-list::-webkit-scrollbar {
    display: none;
}

.top-job-item {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e5edf9;
    min-width: min(66%, 360px);
    width: min(66%, 360px);
    flex: 0 0 min(66%, 360px);
    scroll-snap-align: start;
    box-sizing: border-box;
}

.top-job-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: inherit;
    text-decoration: none;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.top-job-link:hover .top-job-title {
    color: #1a73e8;
}

.top-job-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1a73e8;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.top-job-body {
    min-width: 0;
    flex: 1;
}

.top-job-title {
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.top-job-meta {
    color: #6b7280;
    font-size: 13px;
}

@media (min-width: 769px) {
    .top-jobs-card {
        padding: 18px 20px;
    }

    .top-jobs-header {
        margin-bottom: 16px;
    }

    .top-jobs-fade {
        display: none;
    }

    .top-jobs-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        overflow: visible;
        padding: 0;
        list-style: none !important;
        padding-left: 0 !important;
        margin-left: 0;
    }

    .top-job-item {
        min-width: 0;
        width: 100%;
        flex: initial;
        list-style: none;
    }

    .top-job-link {
        align-items: flex-start;
        min-height: 88px;
    }
}

.region-filter-group .category-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.region-clear-btn {
    font-size: 12px;
    color: #888;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #e0e0e0;
    transition: all 0.2s ease;
}

.region-clear-btn:hover {
    background-color: #d0d0d0;
    color: #333;
}

.region-form {
    margin: 0;
}

.date-filter-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 0;
}

.date-filter-field {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.date-filter-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
}

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

.region-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.region-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background-color: white;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.region-checkbox:hover {
    background-color: #f0f0f0;
    border-color: #1a73e8;
}

.region-checkbox input[type="checkbox"] {
    display: none;
}

.region-checkbox:has(input[type="checkbox"]:checked) {
    background-color: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

/* 모바일 화면에서 지역 필터 스타일 */
@media (max-width: 768px) {
    .top-jobs-card {
        padding-left: 16px;
    }

    .top-jobs-header {
        padding-right: 16px;
    }

    .top-jobs-fade {
        width: 36px;
    }

    .top-jobs-fade-left {
        display: none;
    }

    .top-jobs-list {
        padding-right: 16px;
    }

    .job-category-fade {
        width: 28px;
    }

    .job-category-fade-left {
        display: none;
    }

    .job-category-scroll {
        padding-right: 16px;
        padding-left: 0;
    }

    .job-detail-modal {
        padding: var(--app-modal-top-offset) 12px var(--app-modal-safe-bottom-offset);
    }

    .job-detail-modal-panel {
        padding: 18px;
    }

    .job-detail-modal-title {
        font-size: 19px;
    }

    .top-job-item {
        min-width: 82%;
        width: 82%;
        flex-basis: 82%;
    }

    .filter-row {
        flex-direction: row;
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    .secondary-filter-row {
        width: 100%;
        gap: 8px;
        align-items: center;
    }

    .search-area {
        width: 100%;
        min-width: 0;
    }

    .search-area input[type="text"] {
        min-width: 0;
        width: auto;
        max-width: none;
        flex: 1 1 0;
    }
    
    .filter-block-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .secondary-filter-row .sort-select,
    .secondary-filter-row .filter-block-btn {
        min-width: fit-content;
    }

    .search-submit-btn {
        min-width: 64px;
    }
    
    .region-filter-group {
        width: 100%;
        box-sizing: border-box;
    }
    
    .keyword-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .job-category-group,
    .region-filter-group {
        width: 100%;
        box-sizing: border-box;
    }
    
    .region-checkboxes {
        max-width: 100%;
    }

    /* 직무 분류 스크롤 모바일 스타일 */
    .job-category-scroll-container {
        padding: 0;
    }
    
    .category-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    /* 필터 모달 모바일 스타일 */
    .filter-modal {
        max-width: 100%;
        margin: 0;
        max-height: var(--app-modal-safe-height);
        border-radius: 12px;
    }

    .filter-modal-overlay {
        padding: var(--app-modal-top-offset) 12px var(--app-modal-safe-bottom-offset);
    }
    
    .modal-search-row {
        flex-direction: row;
    }
    
    .modal-search-type {
        width: 80px;
        padding: 10px 24px 10px 10px;
        font-size: 13px;
    }
    
    /* 정렬/갯수 컨테이너 모바일 스타일 */
    .sort-count-container {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }
}

.job-detail-mentor-comments {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    background: #f8fafc;
}

.job-detail-mentor-comments[hidden] {
    display: none;
}

.job-detail-section-title {
    margin: 0;
    color: #1f2933;
    font-size: 14px;
    font-weight: 900;
}

.job-detail-mentor-comment-list {
    display: grid;
    gap: 8px;
}

.job-detail-mentor-comment {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    background: #ffffff;
}


.job-detail-mentor-comment-body {
    width: 100%;
    min-width: 0;
}

.job-detail-mentor-comment-name,
.job-detail-mentor-comment-content {
    margin: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: normal;
}

.job-detail-mentor-comment-name {
    color: #1f2933;
    font-size: 13px;
    font-weight: 900;
}

.job-detail-mentor-comment-content {
    margin-top: 4px;
    color: #52606d;
    font-size: 13px;
    line-height: 1.55;
}

.job-detail-mentor-profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    max-width: 100%;
    min-height: 34px;
    padding: 0 11px;
    box-sizing: border-box;
    border: 1px solid rgba(26, 115, 232, 0.22);
    border-radius: 8px;
    background: #ffffff;
    color: #1a73e8;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.mentor-advice-textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 76px;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid rgba(109, 40, 217, 0.2);
    border-radius: 8px;
    background: #ffffff;
    color: #1f2933;
    font: inherit;
    font-size: 13px;
    line-height: 1.55;
    resize: vertical;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
}

.mentor-advice-textarea:focus {
    border-color: rgba(124, 58, 237, 0.58);
    outline: 3px solid rgba(196, 181, 253, 0.36);
}

@media (max-width: 640px) {
    .job-detail-mentor-comment {
        grid-template-columns: minmax(0, 1fr);
    }

    .job-detail-mentor-comment-actions {
        justify-self: stretch;
        width: 100%;
    }

    .job-detail-mentor-comment-edit,
    .job-detail-mentor-comment-delete {
        flex: 1 1 0;
    }

    .job-detail-mentor-profile-link {
        justify-self: stretch;
        width: 100%;
    }
}

.mentor-advice-panel[hidden] {
    display: none;
}

.mentor-advice-panel {
    display: block;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(109, 40, 217, 0.14);
    border-radius: 8px;
    background: #fbfaff;
    box-shadow: 0 10px 24px rgba(109, 40, 217, 0.08);
}

.mentor-advice-form {
    display: grid;
    gap: 10px;
}

.mentor-advice-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.mentor-advice-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(109, 40, 217, 0.2);
    border-radius: 8px;
    background: #7c3aed;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
}

.mentor-advice-save:hover {
    background: #6d28d9;
}

.job-detail-mentor-comment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    align-self: end;
}

.job-detail-mentor-comment-edit,
.job-detail-mentor-comment-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    background: #ffffff;
    font-size: 12px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.job-detail-mentor-comment-edit {
    border: 1px solid rgba(109, 40, 217, 0.18);
    color: #6d28d9;
}

.job-detail-mentor-comment-delete {
    border: 1px solid rgba(179, 38, 30, 0.18);
    color: #b3261e;
}
