@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
    --teal:        #00d4c8;
    --teal-bright: #00f5e4;
    --teal-dim:    #00a89e;
    --teal-glow:   rgba(0, 212, 200, 0.18);
    --teal-subtle: rgba(0, 212, 200, 0.07);

    --dark:        #080d0d;
    --surface:     #0e1616;
    --surface-2:   #141f1f;
    --surface-3:   #1a2828;
    --border:      rgba(0, 212, 200, 0.14);
    --border-mid:  rgba(0, 212, 200, 0.28);

    --text:        #e8f4f4;
    --text-mid:    #8cb8b8;
    --text-dim:    #4a7070;

    --danger:      #ff4d6a;
    --success:     #00d4a0;
    --warning:     #f5c400;

    --radius:      6px;
    --radius-lg:   12px;
    --transition:  0.18s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    background: var(--dark);
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,212,200,0.08) 0%, transparent 60%);
}

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-bright); }

/* ============================================================
   NAV
   ============================================================ */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.5rem;
    height: 60px;
    background: rgba(8, 13, 13, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--teal), var(--teal-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links { display: flex; align-items: center; gap: 0.25rem; }

.nav-links a {
    color: var(--text-mid);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav-links a:hover { color: var(--teal); background: var(--teal-subtle); }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
main { max-width: 1140px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-messages { margin-bottom: 1.5rem; }

.flash {
    padding: 0.8rem 1.1rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-left: 3px solid;
}

.flash-success { background: rgba(0,212,160,0.1);  border-color: var(--success); color: #a0ffe0; }
.flash-danger  { background: rgba(255,77,106,0.1); border-color: var(--danger);  color: #ffb3be; }
.flash-warning { background: rgba(245,196,0,0.1);  border-color: var(--warning); color: #ffe680; }
.flash-info    { background: var(--teal-subtle);   border-color: var(--teal);    color: var(--teal); }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary { background: var(--teal); color: var(--dark); border-color: var(--teal); font-weight: 700; }
.btn-primary:hover { background: var(--teal-bright); border-color: var(--teal-bright); box-shadow: 0 0 18px var(--teal-glow); color: var(--dark); }

.btn-secondary { background: transparent; color: var(--teal); border-color: var(--border-mid); }
.btn-secondary:hover { background: var(--teal-subtle); border-color: var(--teal); color: var(--teal-bright); }

.btn-danger { background: transparent; color: var(--danger); border-color: rgba(255,77,106,0.3); }
.btn-danger:hover { background: rgba(255,77,106,0.12); border-color: var(--danger); }

.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-container {
    max-width: 420px;
    margin: 4rem auto;
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 0 40px rgba(0,212,200,0.05);
}

.form-container h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
    color: var(--text);
}

.form-container p { margin-top: 1.25rem; font-size: 0.875rem; color: var(--text-mid); }

.field { margin-bottom: 1.1rem; }

.field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 0.4rem;
}

.field.field-inline { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; }
.field.field-inline label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 0.875rem; color: var(--text-mid); }

.input {
    width: 100%;
    padding: 0.6rem 0.9rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.input:focus { border-color: var(--teal-dim); box-shadow: 0 0 0 3px var(--teal-glow); }
.input::placeholder { color: var(--text-dim); }
.textarea { resize: vertical; min-height: 100px; }
.field-error { display: block; color: var(--danger); font-size: 0.8rem; margin-top: 0.3rem; }

/* ============================================================
   PROFILE GRID
   ============================================================ */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.25rem;
}

.profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: inherit;
    display: block;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.profile-card:hover {
    border-color: var(--teal-dim);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,212,200,0.12);
    color: inherit;
}

.profile-card img { width: 100%; height: 210px; object-fit: cover; display: block; }

.profile-card-placeholder {
    width: 100%;
    height: 210px;
    background: var(--surface-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--teal-dim);
    letter-spacing: 0.05em;
}

.profile-card-info { padding: 1rem 1.1rem 1.2rem; }

.profile-card-info strong {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.profile-card-info span { display: block; font-size: 0.82rem; color: var(--text-mid); line-height: 1.4; }

/* ============================================================
   PROFILE DETAIL
   ============================================================ */
.profile-detail {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.profile-header { display: flex; gap: 2.5rem; margin-bottom: 2.5rem; align-items: flex-start; }

.profile-headshot {
    width: 170px;
    height: 210px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.profile-header-info h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text) 60%, var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.meta {
    font-size: 0.875rem;
    color: var(--text-mid);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.meta::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--teal-dim);
    flex-shrink: 0;
}

.profile-section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }

.profile-section h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 1.1rem;
}

.profile-section p { color: var(--text-mid); font-size: 0.95rem; line-height: 1.75; }

/* ============================================================
   IMAGE GRID
   ============================================================ */
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.75rem; }
.image-grid figure { margin: 0; }
.image-grid img { width: 100%; height: 150px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); display: block; transition: border-color var(--transition); }
.image-grid img:hover { border-color: var(--teal-dim); }
.image-grid figcaption { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.3rem; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); margin-top: 0.5rem; display: block; }

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

.video-embed h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-3);
}

.iframe-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ============================================================
   LINKS
   ============================================================ */
.link-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.link-list a { font-size: 0.875rem; color: var(--teal); display: inline-flex; align-items: center; gap: 0.35rem; }
.link-list a::before { content: '↗'; font-size: 0.75rem; opacity: 0.7; }
.link-list a:hover { color: var(--teal-bright); }

/* ============================================================
   ADMIN TABLES
   ============================================================ */
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }

.admin-table th {
    padding: 0.7rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.admin-table td { padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--text-mid); border-bottom: 1px solid var(--border); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--teal-subtle); }
.admin-table a { color: var(--teal); font-size: 0.825rem; margin-right: 0.75rem; }

/* ============================================================
   ADMIN EDIT SECTIONS
   ============================================================ */
.edit-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem 2rem; margin-bottom: 1.5rem; }

.edit-section h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.video-admin-row, .link-admin-row { padding: 0.6rem 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 1rem; font-size: 0.875rem; color: var(--text-mid); }
.video-admin-row:last-child, .link-admin-row:last-child { border-bottom: none; }

/* ============================================================
   CAREER TABLE
   ============================================================ */
.career-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.875rem; }
.career-table th { padding: 0.5rem 0.75rem; text-align: left; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--teal); border-bottom: 1px solid var(--border); }
.career-table td { padding: 0.6rem 0.75rem; color: var(--text-mid); border-bottom: 1px solid var(--border); }
.career-table tr:last-child td { border-bottom: none; }

/* ============================================================
   ADMIN BAR
   ============================================================ */
.admin-bar { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); display: flex; gap: 0.75rem; }

/* ============================================================
   INPUTS — MISC
   ============================================================ */
input[type="checkbox"] { accent-color: var(--teal); width: 15px; height: 15px; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal-dim); }