/* static/css/styles.css */

:root {
    --primary-color: #f0ad37;
    --primary-hover: #d99a2f;
    --text-dark: #333;
    --text-light: #666;
    --text-lighter: #999;
    --border-color: #e0e0e0;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 사이드 메뉴 */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

.side-menu.active {
    pointer-events: all;
}

.side-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: var(--transition);
}

.side-menu.active .side-menu-overlay {
    opacity: 1;
}

.side-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--white);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.side-menu.active .side-menu-content {
    transform: translateX(0);
}

.side-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    font-size: 32px;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1;
}

.user-profile {
    padding: 60px 24px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.side-nav {
    flex: 1;
    padding: 16px 0;
}

.nav-item {
    display: block;
    padding: 16px 24px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
    background: var(--bg-light);
    color: var(--primary-color);
}

.logout-btn {
    margin: 16px 24px;
    padding: 14px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.logout-btn:hover {
    background: var(--primary-hover);
}

/* 헤더 */
.header {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.menu-btn {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 6px;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

.menu-btn:hover span {
    background: var(--primary-color);
}

.logo {
    flex: 1;
    text-align: center;
}

.logo img {
    height: 27px;
}

.user-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: var(--transition);
}

.user-icon:hover {
    color: var(--primary-color);
}

.main-nav {
    display: none;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.nav-link {
    display: inline-block;
    padding: 12px 24px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 검색 영역 */
.search-wrapper {
    margin-bottom: 32px;
}

.search-form {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--primary-color);
}

/* 메인 컨텐츠 */
.main-content {
    min-height: calc(100vh - 200px);
    overflow: visible;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 24px;
    overflow: visible;
}

/* 섹션 헤더 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

/* 뷰 토글 버튼 */
.view-toggle {
    display: flex;
    gap: 8px;
    align-items: center;
}

.view-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.view-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.view-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.view-btn i {
    font-size: 16px;
}

/* 구분선 */
.section-divider {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 32px 0 40px 0;
}

/* 프리미엄 배너 */
.premium-section {
    margin-bottom: 48px;
    padding: 0 8px 16px 8px;
    overflow: visible;
}

.banner-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.banner-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-dark);
    transition: var(--transition);
}

.banner-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.banner-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.banner-pagination {
    font-size: 14px;
    color: var(--text-light);
}

.banner-pagination .current {
    color: var(--primary-color);
    font-weight: 700;
}

.banner-slider {
    overflow: hidden;
    border-radius: 12px;
    padding: 0 0 8px 0;
}

.banner-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    min-width: 100%;
    padding: 0 4px;
}

.banner-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.banner-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.banner-image {
    width: 100%;
    height: 160px;
}

.banner-content {
    padding: 16px;
}

.banner-content h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.banner-content p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 12px;
    border-radius: 12px;
}

/* 채용 목록 */
.job-section {
    margin-bottom: 40px;
    overflow: visible;
}

.job-count {
    font-size: 14px;
    color: var(--text-light);
}

.job-count strong {
    color: var(--primary-color);
    font-weight: 700;
}

.job-grid {
    display: grid;
    overflow: visible;
}

.job-grid.list-view {
    grid-template-columns: 1fr;
    gap: 16px;
}

.job-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    opacity: 1;
    position: relative;
}

.job-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.job-card[data-status="closed"] {
    opacity: 0.6;
}

/* 리스트 뷰 스타일 */
.job-card.list-view {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.job-card.list-view .job-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.job-card.list-view .job-header {
    margin-bottom: 8px;
}

.job-card.list-view .job-company {
    margin-bottom: 8px;
}

.job-card.list-view .job-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.job-card.list-view .job-meta {
    margin-bottom: 8px;
}

.job-card.list-view .job-footer {
    margin-top: auto;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.recruiting {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.permanent {
    background: #e3f2fd;
    color: #1565c0;
}

.status-badge.closed {
    background: #fce4ec;
    color: #c2185b;
}

.job-date {
    font-size: 12px;
    color: var(--text-lighter);
}

.job-company {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.company-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.company-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.job-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-light);
}

.meta-divider {
    color: var(--border-color);
}

.job-footer {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.price {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled):not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 푸터 */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    margin-top: 60px;
}

.pc-link {
    display: block;
    text-align: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.pc-link:hover {
    color: var(--primary-color);
}

/* 태블릿 */
@media (min-width: 768px) {
    .header-container {
        padding: 14px 24px;
    }

    .logo img {
        height: 31.5px;
    }

    .container {
        padding: 32px 32px;
    }

    .main-nav {
        display: flex;
        justify-content: center;
    }

    .section-title {
        font-size: 24px;
    }

    .banner-slide {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 8px;
    }
}

/* 데스크톱 */
@media (min-width: 1024px) {
    .logo img {
        height: 36px;
    }

    .banner-slide {
        grid-template-columns: repeat(4, 1fr);
        padding: 0 12px;
    }
    
    .container {
        padding: 32px 40px;
    }
}