/* VisComm Job Board - JACC Visual Communications */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Inter:wght@400;600;700&display=swap');

:root {
    --primary: #111;
    --primary-light: #333;
    --accent: #111;
    --success: #222;
    --danger: #555;
    --warning: #444;
    --gray-50: #fafafa;
    --gray-100: #f0f0f0;
    --gray-200: #ddd;
    --gray-400: #bbb;
    --gray-500: #999;
    --gray-600: #666;
    --gray-800: #222;
    --gray-900: #111;
    --radius: 6px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --font-display: 'Bangers', cursive;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

a { color: #111; }
table a { text-decoration: underline; text-underline-offset: 2px; }
table a:hover { text-decoration-thickness: 2px; }

body {
    font-family: var(--font-body);
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
}

/* NAV */
nav {
    background: #000;
    color: white;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    box-shadow: 0 3px 0 #333;
    position: sticky;
    top: 0;
    z-index: 100;
}
nav .brand {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.05em;
}
nav .brand span { color: #ccc; }
nav .nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}
nav .nav-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.2s;
}
nav .nav-links a:hover { background: rgba(255,255,255,0.12); color: white; }
nav .nav-links a.active { background: rgba(255,255,255,0.18); color: white; }

/* LAYOUT */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.container-narrow { max-width: 700px; margin: 0 auto; padding: 2rem; }

/* CARDS */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
}
.card h2 {
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gray-900);
    letter-spacing: 0.03em;
}
.card h3 { margin-bottom: 0.75rem; color: var(--gray-800); }

/* STATS ROW */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    text-align: center;
    border: 1px solid var(--gray-200);
}
.stat-card .number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--gray-900);
}
.stat-card .label {
    font-size: 0.8rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* TABLES */
table { width: 100%; border-collapse: collapse; }
th, td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}
th {
    background: var(--gray-100);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-600);
}
tr:hover { background: var(--gray-50); }

/* STATUS BADGES */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 2px solid;
}
.badge-open { background: white; color: #333; border-color: #333; }
.badge-claimed { background: #eee; color: #333; border-color: #999; }
.badge-in_progress, .badge-in-progress { background: #333; color: white; border-color: #333; }
.badge-review { background: #666; color: white; border-color: #666; }
.badge-completed { background: #111; color: white; border-color: #111; }
.badge-cancelled { background: var(--gray-200); color: var(--gray-600); border-color: var(--gray-400); }

/* FORMS */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--gray-600);
    font-size: 0.8rem;
}
input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="date"], input[type="password"],
select, textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 2px solid var(--gray-400);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}
textarea { min-height: 100px; resize: vertical; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.15s;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.btn-primary { background: #111; color: white; }
.btn-primary:hover { background: #333; }
.btn-accent { background: #111; color: white; }
.btn-accent:hover { background: #333; }
.btn-success { background: #222; color: white; }
.btn-success:hover { background: #444; }
.btn-danger { background: #555; color: white; }
.btn-danger:hover { background: #333; }
.btn-outline {
    background: transparent;
    border: 2px solid #111;
    color: #111;
}
.btn-outline:hover { background: #111; color: white; }
.btn-sm { padding: 0.3rem 0.8rem; font-size: 0.75rem; }
.btn-block { display: block; width: 100%; }

/* FLASH MESSAGES */
.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border: 2px solid;
}
.flash-success { background: #f0f0f0; color: #111; border-color: #333; }
.flash-error { background: #fafafa; color: #111; border-color: #111; }
.flash-info { background: #f5f5f5; color: #333; border-color: #999; }

/* PROGRESS BAR */
.progress-bar {
    background: var(--gray-200);
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    border: 1px solid var(--gray-400);
}
.progress-bar .fill {
    height: 100%;
    background: #333;
    border-radius: 20px;
    transition: width 0.3s;
}

/* STAR RATING */
.star-rating { display: flex; gap: 0.25rem; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating input { display: none; }
.star-rating label {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--gray-400);
    transition: color 0.2s;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: #333; }

/* LOGIN */
.login-box {
    max-width: 400px;
    margin: 4rem auto;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    text-align: center;
    border: 2px solid var(--gray-200);
}
.login-box h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #111;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}
.login-box p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* SIGN-OFF FORM */
.rating-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}
.rating-group label {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}
.rating-group input { display: none; }
.rating-group input:checked + label {
    background: #111;
    color: white;
    border-color: #111;
}

/* JOB DETAIL */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
.job-header h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: #111;
    letter-spacing: 0.03em;
    font-weight: 400;
}
.job-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}
.job-meta-item label {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    font-weight: 700;
}
.job-meta-item span {
    font-weight: 600;
}

/* CHECKBOX / RADIO GROUP */
.choice-group { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
.choice-group label {
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.choice-group input { display: none; }
.choice-group input:checked + label {
    background: #111;
    color: white;
    border-color: #111;
}

/* SECTION HEADING */
.section-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    color: #111;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #111;
    letter-spacing: 0.04em;
}

/* PUBLIC BOARD */
.board-header {
    text-align: center;
    padding: 2rem 0;
}
.board-header h1 {
    font-family: var(--font-display);
    color: #111;
    font-size: 2.5rem;
    letter-spacing: 0.05em;
}
.board-header p { color: var(--gray-600); }

/* RESPONSIVE */
@media (max-width: 768px) {
    nav { padding: 0 1rem; }
    .container, .container-narrow { padding: 1rem; }
    .form-row { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .job-header { flex-direction: column; }
    table { font-size: 0.85rem; }
    th, td { padding: 0.5rem; }
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-600);
}
.empty-state h3 { margin-bottom: 0.5rem; color: var(--gray-800); }

/* SIGNOFF URL BOX */
.url-box {
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.75rem;
    word-break: break-all;
    font-family: monospace;
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

/* ACTION BAR */
.action-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
