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

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

:root {
    --background: hsl(210 40% 98%);
    --foreground: hsl(222 47% 11%);
    --card: hsl(0 0% 100%);
    --card-foreground: hsl(222 47% 11%);
    --primary: hsl(222 47% 11%);
    --primary-foreground: hsl(210 40% 98%);
    --secondary: hsl(210 40% 96.1%);
    --secondary-foreground: hsl(222 47% 11%);
    --muted: hsl(210 40% 96.1%);
    --muted-foreground: hsl(215.4 16.3% 46.9%);
    --accent: hsl(173 58% 39%);
    --accent-foreground: hsl(0 0% 100%);
    --destructive: hsl(0 84.2% 60.2%);
    --destructive-foreground: hsl(210 40% 98%);
    --border: hsl(214.3 31.8% 91.4%);
    --input: hsl(214.3 31.8% 91.4%);
    --ring: hsl(222 47% 11%);
    --radius: 0.75rem;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--primary);
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--foreground);
}

.btn-outline:hover {
    background: var(--secondary);
}

.btn-accent {
    background: var(--accent);
    color: var(--accent-foreground);
}

.btn-accent:hover {
    opacity: 0.9;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 20;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.75rem);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 42rem;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Search Bar */
.search-bar {
    max-width: 48rem;
    margin: 0 auto;
    background: white;
    padding: 0.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    min-width: 250px;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    width: 1.25rem;
    height: 1.25rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: none;
    font-size: 1.125rem;
    outline: none;
}

/* Card */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    border-color: hsl(222 47% 11% / 0.2);
}

.card-header {
    padding: 1.5rem 1.5rem 0.75rem;
}

.card-content {
    padding: 0 1.5rem 0.75rem;
}

.card-footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--border);
    background: hsl(210 40% 98% / 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card:hover .card-footer {
    background: hsl(210 40% 98%);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

.badge-secondary {
    background: hsl(222 47% 11% / 0.05);
    color: var(--primary);
}

/* Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Section */
section {
    padding: 5rem 0;
}

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

.section-title {
    font-size: 1.875rem;
}

.section-subtitle {
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

/* Info Items */
.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.info-item svg {
    width: 1rem;
    height: 1rem;
    color: var(--accent);
}

/* Job Title */
.job-title {
    font-size: 1.25rem;
    color: var(--foreground);
    transition: color 0.2s;
    margin: 0.5rem 0 0.25rem;
}

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

/* Promo Section */
.promo-section {
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.promo-card {
    background: var(--primary);
    border-radius: 1.5rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.promo-blob-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
    background: hsl(173 58% 39% / 0.2);
    border-radius: 50%;
    filter: blur(60px);
    transform: translate(50%, -50%);
}

.promo-blob-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 16rem;
    height: 16rem;
    background: hsl(173 58% 39% / 0.1);
    border-radius: 50%;
    filter: blur(60px);
    transform: translate(-50%, 50%);
}

.promo-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.promo-text h2 {
    color: white;
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    margin-bottom: 1rem;
}

.promo-text p {
    color: hsl(210 40% 98% / 0.8);
    font-size: 1.125rem;
    max-width: 40rem;
}

/* Input */
input, textarea, select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    outline: none;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--ring);
    box-shadow: 0 0 0 2px hsl(222 47% 11% / 0.1);
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    font-weight: 600;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
}

.modal-content {
    background: var(--card);
    border-radius: var(--radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modal-close {
    cursor: pointer;
    padding: 0.25rem;
}

/* Form */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 2rem 0;
    margin-top: 5rem;
}

footer p {
    text-align: center;
    opacity: 0.8;
}

/* Utilities */
.text-muted {
    color: var(--muted-foreground);
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        gap: 1rem;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .promo-content {
        flex-direction: column;
        text-align: center;
    }
}
