@charset "utf-8";

/* ==========================================
   JobKorea Style Mobile CSS
   영업의고수 모바일 페이지
   ========================================== */

/* CSS Variables */
:root {
    --primary-color: #EC6521;
    --primary-hover: #d4551a;
    --primary-light: #FFF4EC;
    --secondary-color: #2c3e50;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-lighter: #fafbfc;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --header-height: 56px;
    --transition: 0.3s ease;
}

/* Reset & Base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Utility Classes */
.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;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: var(--bg-white);
    z-index: 999;
    overflow-y: auto;
    transition: left var(--transition);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-sidebar.active {
    left: 0;
}

body.sidebar-open {
    overflow: hidden;
}

/* Sidebar Header */
.sidebar-header {
    position: sticky;
    top: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 20px 16px;
    z-index: 10;
}

.sidebar-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info, .login-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    font-size: 48px;
    color: white;
    opacity: 0.9;
}

.user-details strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.user-details span {
    display: block;
    font-size: 13px;
    opacity: 0.8;
}

.login-prompt i {
    font-size: 40px;
}

.login-prompt a {
    color: white;
    text-decoration: none;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding-bottom: 80px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    border-bottom: 1px solid var(--border-color);
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
}

.nav-link:active {
    background-color: var(--bg-light);
}

.nav-toggle i {
    transition: transform var(--transition);
}

.nav-item.active .nav-toggle i {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: var(--bg-lighter);
}

.submenu-item {
    border-top: 1px solid var(--border-color);
}

.submenu-link {
    display: block;
    padding: 14px 20px 14px 40px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.2s;
}

.submenu-link:active {
    background-color: var(--bg-light);
}

.sidebar-footer-links {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.sidebar-footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background-color: var(--bg-lighter);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    position: relative;
}

.sidebar-footer-links a:active {
    background-color: var(--bg-light);
    transform: scale(0.98);
}

/* 특별한 링크 스타일 */
.sidebar-footer-links a.admin-link {
    background-color: #fff5f5;
    border-color: #feb2b2;
    color: #c53030;
}

.sidebar-footer-links a.company-link,
.sidebar-footer-links a.personal-link {
    background-color: #f0fff4;
    border-color: #9ae6b4;
    color: #276749;
}

.sidebar-footer-links a.logout-link {
    background-color: #edf2f7;
    border-color: #cbd5e0;
    color: #4a5568;
}

/* 쪽지 알림 카운트 배지 */
.sidebar-footer-links a.memo-link {
    position: relative;
}

.sidebar-footer-links .memo-count {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background-color: #e53e3e;
    color: white;
    font-size: 11px;
    font-weight: bold;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--bg-white);
    z-index: 900;
    transition: box-shadow 0.2s;
}

.mobile-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 12px;
}

.header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.header-btn:active {
    background-color: var(--bg-light);
}

.header-logo {
    flex: 1;
    text-align: center;
    margin: 0;
    padding: 0 8px;
}

.header-logo a {
    display: inline-block;
}

.header-logo img {
    height: 32px;
    width: auto;
}

/* Search Panel */
.search-panel {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s, opacity 0.3s, padding 0.3s;
    box-shadow: var(--shadow-md);
}

.search-panel.active {
    max-height: 400px;
    opacity: 1;
}

.search-form {
    margin-bottom: 16px;
}

.search-input-wrapper {
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-submit {
    width: 44px;
    height: 44px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-submit:active {
    background-color: var(--primary-hover);
}

.popular-keywords {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.popular-keywords h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

/* Main Wrapper */
.mobile-wrapper {
    padding-top: var(--header-height);
    min-height: 100vh;
}

.mobile-container {
    background-color: var(--bg-light);
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.back-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
}

.page-title {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

/* Hero Banner Carousel */
.hero-banner-carousel {
    position: relative;
    width: 100%;
    background-color: var(--bg-white);
}

.hero-swiper {
    width: 100%;
    /* height: 100%; */
}

.hero-banner-carousel .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-lighter);
}

.hero-banner-carousel .banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-banner-carousel .banner-image {
    width: 100%;
    height: 100%;
    max-height: 140px;
    object-fit: fill;
    display: block;
}

.hero-banner-carousel .swiper-pagination {
    bottom: 12px !important;
}

.hero-banner-carousel .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.hero-banner-carousel .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
    width: 24px;
    border-radius: 4px;
}

/* 기존 Hero Banner는 사용 안함 */
.hero-banner {
    display: none;
}

/* Section */
.section-inner {
    padding: 20px 16px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    padding-left: 12px;
    border-left: 4px solid var(--primary-color);
    line-height: 1.4;
}

.more-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.more-link:active {
    color: var(--primary-color);
}

/* Quick Menu Section */
.quick-menu-section {
    background-color: var(--bg-white);
    padding: 20px 0;
}

.quick-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.quick-menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--primary-color);
    transform: translateY(-100%);
    transition: transform 0.2s;
}

.quick-menu-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-menu-card:active::before {
    transform: translateY(0);
}

.card-icon {
    width: 56px;
    height: 56px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-color);
}

.card-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.card-content p {
    font-size: 13px;
    margin: 4px 0 0 0;
    color: var(--text-secondary);
}

.card-arrow {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Banner Carousel Section - Hero로 통합됨 */

/* Job Listings Section */
.job-listings-section {
    padding: 20px 0;
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    transition: all 0.2s;
}

.job-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.job-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.company-info {
    display: flex;
    gap: 12px;
    flex: 1;
}

.company-logo {
    width: 48px;
    height: 48px;
    background-color: var(--bg-lighter);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.job-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-primary);
    line-height: 1.4;
}

.company-name {
    font-size: 14px;
    margin: 0;
    color: var(--text-secondary);
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background-color: var(--bg-lighter);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.meta-tag i {
    font-size: 11px;
}

.tag-location {
    border-color: #3b82f6;
    background-color: #eff6ff;
    color: #3b82f6;
}

.tag-type {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.meta-date {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
}

/* Mobile Footer */
.mobile-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 32px 20px 80px;
    margin-top: 40px;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 14px;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:active {
    color: var(--primary-color);
}

.footer-links .divider {
    color: #7f8c8d;
}

.footer-info {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.company-name {
    font-size: 16px;
    margin-bottom: 12px;
}

.company-details {
    font-size: 13px;
    line-height: 1.8;
    color: #95a5a6;
    margin: 0;
}

.footer-copyright {
    text-align: center;
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.device-change {
    text-align: center;
}

.pc-version-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.pc-version-link:active {
    background-color: rgba(255,255,255,0.2);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 800;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:active {
    background-color: var(--primary-hover);
    transform: scale(0.95);
}

/* Responsive */
@media (min-width: 768px) {
    .quick-menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-banner-carousel .banner-image {
        max-height: 280px;
    }

    .hero-title {
        font-size: 28px;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.loading {
    animation: shimmer 1.2s ease-in-out infinite;
    background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 800px 104px;
}

