/* 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); }

/* HAMBURGER MENU */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    margin: 4px 0;
}

/* FOOTER */
footer {
    background: #000;
    color: rgba(255,255,255,0.6);
    padding: 1.5rem 2rem;
    margin-top: 3rem;
    font-size: 0.85rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-links a:hover { color: white; }

/* FILTER BUTTONS */
.filter-btn {
    padding: 0.35rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    background: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.15s;
}
.filter-btn:hover { border-color: #111; }
.filter-btn.active { background: #111; color: white; border-color: #111; }

/* MOBILE JOB CARDS (hidden on desktop) */
.job-cards { display: none; }
.job-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        height: auto;
        padding: 0 1rem;
    }
    nav .brand {
        flex: 1 1 auto;
    }
    .nav-toggle {
        display: flex;
        flex: 0 0 auto;
    }
    nav .nav-links {
        display: none !important;
        flex: 0 0 100%;
        flex-direction: column;
        padding: 0.5rem 0 1rem;
        gap: 0;
        list-style: none;
        margin: 0;
    }
    nav .nav-links.open { display: flex !important; }
    nav .nav-links li a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .container, .container-narrow { padding: 1rem; }
    .form-row { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .job-header { flex-direction: column; }
    .job-table-wrap { display: none; }
    .job-cards { display: block; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

/* 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;
}

/* PRODUCTS */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.product-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}
.product-card:hover { box-shadow: var(--shadow-lg); }
.product-img {
    height: 180px;
    overflow: hidden;
    background: var(--gray-100);
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info {
    padding: 1.25rem;
}
.product-info h3 {
    margin-bottom: 0.4rem;
    font-size: 1.15rem;
}
.product-info p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
/* Constrain rich text inside product cards */
.product-desc {
    max-height: 4.5em;
    overflow: hidden;
    position: relative;
    line-height: 1.5;
    font-size: 0.9rem !important;
    color: var(--gray-600);
}
/* Force ALL nested elements to card-size text */
.product-desc * {
    font-size: 0.9rem !important;
    font-family: var(--font-body) !important;
    font-weight: normal !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--gray-600) !important;
    line-height: 1.5 !important;
}
.product-desc ul, .product-desc ol { padding-left: 1.2rem !important; }
.product-desc::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.5em;
    background: linear-gradient(transparent, white);
}

.product-meta {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.product-meta small { color: var(--gray-500); }

/* BADGES */
.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    background: var(--gray-200);
    color: var(--gray-600);
}
.badge-success { background: #d4edda; color: #155724; }
.badge-muted { background: var(--gray-100); color: var(--gray-500); }

/* FORM BUILDER */
.form-section {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.form-section h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-600);
}
.form-row { margin-bottom: 1rem; }
.form-row label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="number"],
.form-row input[type="date"],
.form-row input[type="file"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--gray-800);
}

/* Field rows in form builder */
.field-row {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    background: var(--gray-50);
}
.field-row-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.85rem;
}
.field-drag { cursor: grab; color: var(--gray-400); }
.field-row-body { padding: 0.75rem; }
.field-options-wrap { margin-top: 0.75rem; }

/* TOGGLE SWITCH */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    vertical-align: middle;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gray-400);
    border-radius: 24px;
    transition: 0.25s;
}
.toggle-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.25s;
}
.toggle-switch input:checked + .toggle-slider { background: #111; }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }
.toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Button variants */
.btn-sm {
    padding: 0.25rem 0.6rem !important;
    font-size: 0.75rem !important;
}
.btn-danger { background: #555 !important; }
