@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #a855f7;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

#container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Tabs Modern Style */
.tabs {
    display: flex;
    list-style: none;
    margin-bottom: 30px;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.tabs li {
    padding: 10px 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.tabs li:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.tabs li.active {
    color: var(--primary);
    background: white;
}

.tabs li.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* Filter Bar (Region Selector) */
.filter-section {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.filter-section form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-section select {
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    min-width: 200px;
    outline: none;
    transition: all 0.3s;
}

.filter-section select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-h4 {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-h4:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}

.info-text {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Job Card Grid */
.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.job-card-form {
    display: block;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

.job-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    height: 100%;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    visibility: hidden;
}

.job-card.reveal {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.job-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
    border-color: var(--primary);
}

/* Hover Glow Effect */
.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(99, 102, 241, 0.05),
        transparent
    );
    transition: all 0.6s;
}

.job-card:hover::before {
    left: 100%;
}

.job-card .company-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s;
}

.job-card:hover .company-name {
    color: var(--secondary);
}

.job-card .job-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 20px;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.4em;
    transition: color 0.3s;
}

.job-card:hover .job-title {
    color: var(--primary);
}

.job-card .job-meta {
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    transition: border-color 0.3s;
}

.job-card:hover .job-meta {
    border-top-color: rgba(99, 102, 241, 0.2);
}

.job-card .deadline-badge {
    display: inline-block;
    padding: 5px 15px;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 10px;
    transition: all 0.3s;
}

.job-card:hover .deadline-badge {
    background: #ef4444;
    color: white;
    transform: rotate(-2deg);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .job-grid {
        grid-template-columns: 1fr;
    }
    .filter-section form {
        flex-direction: column;
    }
    .filter-section select {
        width: 100%;
    }
}
