/* enhancements.css - James Hansen
   Glossy, professional styling for the new landing and bio areas.
   Layered on top of style.css; matches the existing dark / serif / green look. */

:root {
    --accent:        #5fbf95;
    --accent-deep:   #2e8b57;
    --panel:         rgba(12, 16, 14, 0.72);
    --panel-edge:    rgba(255, 255, 255, 0.14);
    --sheen:         rgba(255, 255, 255, 0.06);
    --text-soft:     rgba(255, 255, 255, 0.82);
}

/* ---- Header: social buttons (GitHub / LinkedIn / Email) ---- */
#social-bubbles {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}
.bubble-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 27px;
    margin-right: 5px;
    border-radius: 7px;
    color: var(--accent);
    border: 1px solid var(--panel-edge);
    background:
        linear-gradient(180deg, var(--sheen) 0%, rgba(255,255,255,0) 55%),
        rgba(255, 255, 255, 0.06);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease,
                border-color 0.2s ease, color 0.2s ease;
}
.bubble-btn:last-child { margin-right: 0; }
.bubble-btn:hover {
    transform: translateY(-2px);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.bubble-btn svg { display: block; width: 17px; height: 17px; }

/* ---- Tab bar: slightly tighter so the extra tabs fit gracefully ---- */
#body .title {
    transition: background-color 0.2s ease, color 0.2s ease;
}
#body .title:hover { color: var(--accent); }

/* =====================  LANDING / HOME  ===================== */
.landing {
    padding: 24px 10px 14px 10px;
}

.landing-welcome { margin-bottom: 22px; }

.landing-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

/* ---- Glossy buttons (shared by landing + contact) ---- */
.glossy-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    font-family: 'Timeless', Perpetua, serif;
    font-size: 12pt;
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--panel-edge);
    background:
        linear-gradient(180deg, var(--sheen) 0%, rgba(255,255,255,0) 55%),
        rgba(255, 255, 255, 0.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease,
                border-color 0.2s ease, background 0.2s ease;
}
.glossy-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.glossy-btn svg { display: block; opacity: 0.92; }

.glossy-btn-accent {
    border-color: rgba(95, 191, 149, 0.55);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 55%),
        linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
}
.glossy-btn-accent:hover { border-color: #fff; }

/* ---- Landing quick-link cards ---- */
.landing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 26px;
}
.landing-card {
    background:
        linear-gradient(180deg, var(--sheen) 0%, rgba(255,255,255,0) 60%),
        var(--panel);
    border: 1px solid var(--panel-edge);
    border-top: 2px solid var(--accent);
    border-radius: 10px;
    padding: 18px 20px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.landing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55);
}
.landing-card-title {
    font-family: 'LRTOksana', Perpetua, serif;
    font-size: 16pt;
    color: #fff;
    margin-bottom: 6px;
}
.landing-card p {
    margin: 0;
    font-size: 10.5pt;
    line-height: 1.5;
    color: var(--text-soft);
}

/* =====================  BIO  ===================== */
.bio { padding: 24px 10px 14px 10px; }

.bio-panel {
    background:
        linear-gradient(180deg, var(--sheen) 0%, rgba(255,255,255,0) 40%),
        var(--panel);
    border: 1px solid var(--panel-edge);
    border-top: 2px solid var(--accent);
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.bio-heading {
    font-family: 'LRTOksana', Perpetua, serif;
    font-size: 26pt;
    color: #fff;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bio-body { font-size: 12pt; line-height: 1.7; color: var(--text-soft); }
.bio-body p { margin: 0 0 16px 0; }
.bio-body a { color: var(--accent); }
.bio-body a:hover { color: #fff; }

/* ---- Bio figures / placeholder images ---- */
.bio-figure {
    width: 230px;
    margin: 4px 0 16px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--panel-edge);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    background: #000;
}
.bio-figure-right { float: right; margin-left: 24px; }
.bio-figure-left  { float: left;  margin-right: 24px; }
.bio-figure img { display: block; width: 100%; height: auto; }
.bio-figure figcaption {
    font-size: 8.5pt;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    padding: 7px 10px;
    text-align: center;
}
/* When the suggested image is missing, this renders a tidy labelled
   placeholder instead of a broken image. */
.bio-figure.placeholder {
    min-height: 150px;
    display: flex;
    align-items: flex-end;
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 12px, rgba(255,255,255,0.06) 12px 24px),
        linear-gradient(160deg, var(--accent-deep) 0%, #14241c 100%);
}
.bio-figure.placeholder figcaption {
    width: 100%;
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.85);
    font-style: normal;
}

@media (max-width: 640px) {
    .bio-figure-left, .bio-figure-right { float: none; margin: 0 auto 18px auto; }
}

/* =====================  CONTACT FORM  ===================== */
.bio-contact-intro { font-size: 11.5pt; color: var(--text-soft); margin-bottom: 18px; }
.bio-contact-intro a { color: var(--accent); }

.contact-form { max-width: 620px; }
.form-row { margin-bottom: 14px; }
.form-row label {
    display: block;
    font-size: 10.5pt;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 5px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-family: 'Timeless', Perpetua, serif;
    font-size: 11.5pt;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--panel-edge);
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(95, 191, 149, 0.18);
}
.contact-form textarea { resize: vertical; }

.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.contact-form .glossy-btn { border: none; }
.contact-form button[disabled] { opacity: 0.6; cursor: default; }

.contact-status { font-size: 10.5pt; }
.contact-status.success { color: var(--accent); }
.contact-status.error   { color: #ff8a7a; }

/* Honeypot: invisible to humans, present for bots to trip over. */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =====================  WORK HISTORY NOTE  ===================== */
.resume-note {
    background:
        linear-gradient(180deg, rgba(95,191,149,0.12) 0%, rgba(95,191,149,0.04) 100%);
    border: 1px solid rgba(95, 191, 149, 0.4);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 10px;
    font-size: 11pt;
    color: var(--text-soft);
}
.resume-note a { color: var(--accent); }
.resume-note a:hover { color: #fff; }

/* =====================  SOFTWARE PROJECT ICONS  ===================== */
/* Scale the project item icons to a consistent 48x48 (the tool icons inside
   the table keep their own .icon_16 size, since they are not direct children). */
.item > img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* =====================  PUBLIC POLICY PANELS  ===================== */
.policy-kicker {
    font-family: 'Timeless', Perpetua, serif;
    font-size: 9.5pt;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}

/* Logo (e.g. the LUS logo) scaled down and floated neatly into the panel. */
.policy-logo {
    float: right;
    width: 96px;
    height: auto;
    max-height: 96px;
    margin: 0 0 12px 20px;
    border-radius: 8px;
}

.policy-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* =====================  SECTION HEADINGS (Skills page)  ===================== */
/* Understated heading that matches the original page character, used to split
   the Skills cards into Technical, Analytical and Legacy groups. */
.section-title {
    font-family: 'LRTOksana', Perpetua, serif;
    font-size: 22pt;
    color: #fff;
    margin: 18px 10px 4px 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ccc;
}

/* Font-library icon for skill cards (analytical skills), sized and aligned to
   match the 48x48 image icons on the other cards. Cards have a light
   background, so the icon uses a dark accent colour. */
.skill-faicon {
    float: left;
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    font-size: 30px;
    padding: 5px;
    color: #2e8b57;
}

/* =====================  CASE STUDY BOXES (Public Policy)  ===================== */
.case-study-grid {
    clear: both;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.case-study-box {
    display: block;
    text-decoration: none;
    color: var(--text-soft) !important;
    background:
        linear-gradient(180deg, var(--sheen) 0%, rgba(255,255,255,0) 60%),
        rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-edge);
    border-top: 2px solid var(--accent);
    border-radius: 10px;
    padding: 14px 16px;
    transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.4);
}
.case-study-box:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 11px 24px rgba(0, 0, 0, 0.55);
}
.case-study-region {
    font-family: 'LRTOksana', Perpetua, serif;
    font-size: 15pt;
    color: #fff;
    margin-bottom: 5px;
}
.case-study-blurb {
    font-size: 10pt;
    line-height: 1.5;
}
