/**
 * 모두의구직 - 실시간 API 숏코드 스타일
 * 리스트 페이지 + 상세 페이지 통합 CSS
 * 5060 세대 최적화: 큰 글씨, 높은 대비, 큰 터치 영역
 */

/* ============================
   사이드바 숨기고 전체 너비 사용
   ============================ */
.is-right-sidebar,
.is-left-sidebar,
#right-sidebar,
#left-sidebar,
.sidebar {
    display: none !important;
}

.site-content .content-area,
#primary {
    width: 100% !important;
    max-width: 100% !important;
}

/* 모든 요소에 box-sizing 강제 적용 */
.modu-jobs-container,
.modu-jobs-container * {
    box-sizing: border-box !important;
    max-width: 100% !important;
}

.modu-jobs-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 5px;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.modu-jobs-title {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

/* ============================
   검색 박스 영역
   ============================ */
.modu-jobs-filters {
    margin: 10px 0;
    padding: 15px 10px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
}

.modu-jobs-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.modu-jobs-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.modu-jobs-label {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    min-width: 50px;
    flex-shrink: 0;
}

.modu-jobs-select {
    flex: 1;
    min-width: 0;
    padding: 16px 18px;
    font-size: 22px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.modu-jobs-select:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}

.modu-jobs-btn-search {
    width: 100%;
    padding: 16px 24px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.modu-jobs-btn-search:active {
    transform: scale(0.98);
}

.modu-jobs-filter-info {
    padding: 12px 16px;
    background: #e3f2fd;
    border-radius: 8px;
    font-size: 20px;
    margin: 15px 0;
    border-left: 4px solid #1976d2;
}

.modu-jobs-count {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 2px solid #eee;
}

/* ============================
   구직 리스트 영역
   ============================ */
.modu-jobs-list {
    width: 100%;
    max-width: 100%;
}

.modu-job-item {
    border: 1px solid #e0e0e0;
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.modu-job-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.modu-job-title {
    font-size: 24px;
    font-weight: bold;
    color: #1976d2;
    line-height: 1.4;
    margin-bottom: 12px;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100%;
}

.modu-job-title a {
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    word-wrap: break-word !important;
    white-space: normal !important;
}

.modu-job-info {
    font-size: 20px;
    color: #555;
    margin: 8px 0;
    display: flex;
    align-items: flex-start;
}

.modu-job-info strong {
    min-width: 50px;
}

.modu-btn-detail {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin-top: 15px;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(25, 118, 210, 0.3);
}

/* ============================
   상세 페이지
   ============================ */
.modu-detail-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.modu-detail-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: 12px;
}

.modu-detail-nav a {
    flex: 1;
    min-width: 120px;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.modu-btn-back {
    background: #666;
    color: white !important;
}

.modu-btn-home {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white !important;
}

.modu-detail-title {
    font-size: 22px;
    color: #333;
    line-height: 1.4;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #1976d2;
    word-break: keep-all;
}

.modu-detail-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.modu-detail-row {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    line-height: 1.5;
}

.modu-detail-row:last-child {
    border-bottom: none;
}

.modu-detail-section {
    margin: 15px 0;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    border-left: 4px solid #1976d2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.modu-detail-section h3 {
    font-size: 18px;
    margin: 0 0 15px 0;
}

.modu-btn-apply {
    display: block;
    width: 100%;
    padding: 18px 24px;
    margin: 25px 0;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: white !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ============================
   모바일 반응형
   ============================ */
@media (max-width: 768px) {
    .inside-article,
    .entry-content,
    .grid-container {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    body {
        overflow-x: hidden !important;
    }

    html {
        overflow-x: hidden !important;
    }
}

@media (min-width: 768px) {
    .modu-jobs-form {
        flex-direction: row;
        align-items: center;
    }

    .modu-jobs-form-row {
        flex: 1;
    }

    .modu-jobs-btn-search {
        width: auto;
        margin-top: 0;
    }

    .modu-job-title {
        font-size: 20px;
    }

    .modu-btn-detail {
        width: auto;
        display: inline-block;
    }

    .modu-detail-title {
        font-size: 28px;
    }

    .modu-btn-apply {
        width: auto;
        display: inline-block;
    }
}
