@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;500;700&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --background: #f8fafc; /* Keep off-white background for readability */
    --surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #cbd5e1;
    
    /* 8-bit Theme Colors */
    --pixel-yellow: #fde047;
    --pixel-border: #1e293b;
    --pixel-shadow: #94a3b8;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
}

/* Retro Utilities Classes */
.retro-text {
    font-family: 'Press Start 2P', cursive;
    text-transform: uppercase;
}

.retro-card {
    border: 4px solid var(--pixel-border);
    box-shadow: 8px 8px 0 var(--pixel-shadow);
    background-color: var(--surface);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0; /* Blocky edges */
    transition: transform 0.1s, box-shadow 0.1s;
}

.retro-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0 var(--pixel-shadow);
}

.btn-pixel {
    display: inline-block;
    font-family: 'Press Start 2P', cursive;
    background-color: var(--pixel-yellow);
    color: var(--pixel-border);
    padding: 1rem 1.5rem;
    border: 4px solid var(--pixel-border);
    box-shadow: 4px 4px 0 var(--pixel-border);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.1s;
}

.btn-pixel:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0 var(--pixel-border);
}

/* --- Phase 5 Profile Themes --- */
/* Jobs: Red/Dark Grey "Wanted" */
.theme-job { --theme-color: #dc2626; --theme-bg: #fef2f2; }
/* Teachers: Blue/White "Hero" */
.theme-teacher { --theme-color: #2563eb; --theme-bg: #eff6ff; }
/* Students: Amber/Orange "Quest" */
.theme-student { --theme-color: #d97706; --theme-bg: #fffbeb; }
/* Exchange: Purple/Violet "Trade" */
.theme-exchange { --theme-color: #7c3aed; --theme-bg: #f5f3ff; }

/* Themed Retro Card */
.retro-card-themed {
    border: 4px solid var(--theme-color);
    box-shadow: 8px 8px 0 var(--theme-color);
    background-color: var(--theme-bg);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.retro-card-themed::before {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 2px dashed rgba(0,0,0,0.1);
    pointer-events: none;
}

.themed-text {
    color: var(--theme-color);
}

.themed-btn {
    background-color: var(--theme-color);
    color: #fff;
    border-color: var(--pixel-border);
    box-shadow: 4px 4px 0 var(--pixel-border);
}

.themed-btn:hover {
    filter: brightness(1.1);
}

.pixel-box {
    border: 2px solid var(--pixel-border);
    background: #fff;
    padding: 1rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: inline-block;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-secondary {
    background-color: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--background);
    color: var(--text-main);
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url('images/hero.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 1rem;
    margin-bottom: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 41, 59, 0.7); /* Dark overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0px #000;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 0px #000;
}

.hero-btn {
    font-size: 1.25rem;
    padding: 0.75rem 2rem;
    background-color: #f59e0b; /* contrasting color */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.hero-btn:hover {
    background-color: #d97706;
}

main {
    padding: 3rem 0;
}

.section-title {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-main);
}

/* Job Cards */
.job-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none; /* Make entire card clickable if wrapped in an anchor or just standard styling */
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.job-details h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.job-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.job-action {
    flex-shrink: 0;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Single Job Page */
.job-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.job-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.job-description {
    font-size: 1.125rem;
    line-height: 1.8;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Response messaging */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
