/*
 * pg_styles.css
 * TNT | TechNoviceTools | Password Generator — Page-Specific Styles
 *
 * ─── DEPENDENCY ─────────────────────────────────────────────────────────────
 * Load AFTER ../styles/tnt-base-styles.css.  All CSS custom properties
 * (--tnt-red, --tnt-amber, --tnt-dark, --boogaloo, etc.) come from that file.
 *
 * ─── ACCENT COLOR ───────────────────────────────────────────────────────────
 * The Password Generator uses a cyber-teal accent distinct from other apps
 * so it reads immediately as "security / digital".
 *
 * ─── SECTIONS ───────────────────────────────────────────────────────────────
 *   1.  Accent Token
 *   2.  Sub-Navigation
 *   3.  Index Hero  (binaryBackground.jpg)
 *   4.  Generator Hero  (compact dark gradient)
 *   5.  About Hero  (gears-green-bg2.png)
 *   6.  Index Destination Cards
 *   7.  Generator Form Card
 *   8.  Form Sections, Checkboxes & Inputs
 *   9.  Range Slider
 *   10. Password Output Display
 *   11. Copy Button
 *   12. Font-Size Helper Classes  (used by adjustPWFontSize in JS)
 *   13. Responsive Adjustments
 *
 * Created:  2026-06-12
 * Author:   kpendleton + GitHub Copilot
 * ────────────────────────────────────────────────────────────────────────────
 */


/* ═══════════════════════════════════════════════════════════════════════════
   1. ACCENT TOKEN
   Cyber-teal — signals "digital security" and differentiates this app
   from the amber-accented Financial tools and the red-accented main site.
═══════════════════════════════════════════════════════════════════════════ */
:root {
    --pg-teal:      #00b4d8;
    --pg-teal-dark: #0096b4;
}


/* ═══════════════════════════════════════════════════════════════════════════
   2. SUB-NAVIGATION
   Thin secondary nav below the TNT navbar linking the three PG pages.
═══════════════════════════════════════════════════════════════════════════ */
#pgSubNav {
    background: var(--tnt-mid);
    border-bottom: 2px solid rgba(0, 180, 216, 0.25);
    padding: 0.4rem 0;
}

#pgSubNav .nav-link {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    transition: color 0.18s, background 0.18s;
    white-space: nowrap;
}

#pgSubNav .nav-link:hover {
    color: #fff;
    background: rgba(0, 180, 216, 0.12);
}

#pgSubNav .nav-link.active {
    background: var(--pg-teal);
    color: var(--tnt-dark);
}


/* ═══════════════════════════════════════════════════════════════════════════
   3. INDEX HERO  (binaryBackground.jpg)
═══════════════════════════════════════════════════════════════════════════ */
#pgHero {
    background:
        linear-gradient(to bottom,
            rgba(10, 14, 26, 0.72) 0%,
            rgba(0, 30, 40, 1) 100%),
        url('../images/binaryBackground.jpg') center / cover no-repeat;
    min-height: 320px;
    padding: 4.5rem 1rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 3px solid var(--pg-teal);
}

#pgHero .hero-title    { font-size: clamp(2.4rem, 6vw, 3.8rem); }
#pgHero .hero-subtitle { font-size: clamp(0.95rem, 2.2vw, 1.15rem); max-width: 560px; margin: 0 auto; }

#pgHero .pg-hero-icon {
    font-size: 3.2rem;
    color: var(--pg-teal);
    filter: drop-shadow(0 0 18px rgba(0, 180, 216, 0.6));
    display: block;
    margin-bottom: 0.75rem;
}


/* ═══════════════════════════════════════════════════════════════════════════
   4. GENERATOR HERO  (compact dark gradient — no background image)
═══════════════════════════════════════════════════════════════════════════ */
#pgGenerateHero {
    background: linear-gradient(135deg, #000d14 0%, #001a24 100%);
    border-bottom: 3px solid var(--pg-teal);
    min-height: 190px;
    padding: 2.75rem 1rem 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#pgGenerateHero .pg-hero-icon {
    font-size: 2.8rem;
    color: var(--pg-teal);
    filter: drop-shadow(0 0 12px rgba(0, 180, 216, 0.55));
    display: block;
    margin-bottom: 0.6rem;
}

#pgGenerateHero .hero-title    { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.4rem; }
#pgGenerateHero .hero-subtitle { font-size: 0.95rem; max-width: 480px; margin: 0 auto; }


/* ═══════════════════════════════════════════════════════════════════════════
   5. ABOUT HERO  (gears-green-bg2.png)
═══════════════════════════════════════════════════════════════════════════ */
#pgAboutHero {
    background:
        linear-gradient(to bottom,
            rgba(0, 10, 15, 0.38) 0%,
            rgba(0, 20, 28, 0.58) 100%),
        url('../images/gears-green-bg2.png') center / cover no-repeat;
    min-height: 240px;
    padding: 3.5rem 1rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 3px solid var(--pg-teal);
}

#pgAboutHero .hero-title    { font-size: clamp(2rem, 5vw, 3rem); }
#pgAboutHero .hero-subtitle { font-size: 0.95rem; max-width: 480px; margin: 0 auto; }


/* ═══════════════════════════════════════════════════════════════════════════
   6. INDEX DESTINATION CARDS
   Two clickable cards on the landing page: Generate and About.
═══════════════════════════════════════════════════════════════════════════ */
#pgIndex {
    background: var(--tnt-mid);
    padding: 3rem 1rem 3.5rem;
}

#pgIndex .section-label { color: var(--pg-teal); }
#pgIndex .section-title { color: #fff; }

.pg-dest-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--pg-teal);
    border-radius: 12px;
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    text-decoration: none;
    color: #fff;
    height: 100%;
    transition: transform 0.18s, background 0.18s;
}

.pg-dest-card:hover {
    transform: translateY(-4px);
    color: #fff;
    text-decoration: none;
    background: rgba(0, 180, 216, 0.08);
}

.pg-dest-icon {
    font-size: 2.5rem;
    color: var(--pg-teal);
    margin-bottom: 0.75rem;
}

.pg-dest-title {
    font-family: var(--boogaloo);
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.pg-dest-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.55;
}


/* ═══════════════════════════════════════════════════════════════════════════
   7. GENERATOR FORM CARD
   The outer container holding all the password-crafting controls.
═══════════════════════════════════════════════════════════════════════════ */
#pgGenSection {
    background: var(--tnt-dark);
    padding: 2rem 1rem 3rem;   /* reduced top from 2.5rem — no hero above on Generate page */
    border-top: 3px solid var(--pg-teal); /* replaces the hero's bottom border */
}

.pg-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.pg-card-header {
    background: rgba(0, 180, 216, 0.1);
    border-left: 4px solid var(--pg-teal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1rem 1.5rem;
}

.pg-card-header h2 {
    font-family: var(--boogaloo);
    font-size: 1.6rem;
    color: #fff;
    margin: 0;
}

.pg-card-body { padding: 1.5rem; }


/* ═══════════════════════════════════════════════════════════════════════════
   8. FORM SECTIONS, CHECKBOXES & INPUTS
═══════════════════════════════════════════════════════════════════════════ */

/* Section within the form — adds the overline label like the rest of TNT. */
.pg-form-section {
    margin-bottom: 1.25rem;
}

/* Amber overline label above each group of controls. */
.pg-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--pg-teal);
    margin-bottom: 0.6rem;
    display: block;
}

/* Horizontal rule between form sections. */
.pg-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 1.25rem 0;
}

/* Bootstrap 5 form-check labels — white text on dark background. */
.pg-card .form-check-label {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Teal-accented checkbox tick. */
.pg-card .form-check-input:checked {
    background-color: var(--pg-teal);
    border-color: var(--pg-teal);
}

.pg-card .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.3);
    border-color: var(--pg-teal);
}

/* Muted helper text inside form sections. */
.pg-form-hint {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.38);
    font-style: italic;
    margin-top: 0.2rem;
}

/* Symbol count display. */
.pg-symbol-count {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
}

/* Custom symbols text input. */
#customTF {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 6px;
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
    font-family: 'Courier New', Courier, monospace;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#customTF:focus {
    outline: none;
    border-color: var(--pg-teal);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}

#customTF::placeholder { color: rgba(255, 255, 255, 0.28); }

/* Symbol count inline label + trash icon row. */
.pg-custom-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}


/* ═══════════════════════════════════════════════════════════════════════════
   9. RANGE SLIDER
   Styles the password length slider to match the dark theme.
   Uses webkit/moz pseudo-elements for cross-browser coverage.
═══════════════════════════════════════════════════════════════════════════ */
.pg-range-label {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#lengthSpan {
    color: var(--pg-teal);
    font-weight: 700;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
}

/* Bootstrap 5's form-range styled teal. */
#lengthSlider {
    accent-color: var(--pg-teal);
    width: 100%;
}

#lengthSlider:disabled { opacity: 0.45; cursor: not-allowed; }


/* ═══════════════════════════════════════════════════════════════════════════
   10. BUTTON ROW  (Go / Reload)
═══════════════════════════════════════════════════════════════════════════ */
.pg-btn-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding-top: 1.25rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Go — solid teal. */
.btn-pg-go {
    background: var(--pg-teal);
    border: 2px solid var(--pg-teal);
    color: var(--tnt-dark);
    font-family: var(--boogaloo);
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.5rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    min-width: 100px;
}

.btn-pg-go:hover { background: var(--pg-teal-dark); border-color: var(--pg-teal-dark); transform: scale(1.03); }

/* Reload — teal outline. */
.btn-pg-reload {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--boogaloo);
    font-size: 1rem;
    padding: 0.45rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.btn-pg-reload:hover { border-color: var(--pg-teal); color: var(--pg-teal); }


/* Sticky wrapper for the output panel on the right column.
 * Keeps the generated password visible as the settings column scrolls.
 * top value accounts for the sticky TNT navbar (~64px) + sub-nav (~42px)
 * + a small gap. */
.pg-output-sticky {
    position: sticky;
    top: 120px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. PASSWORD OUTPUT DISPLAY
   Sits below the form card — the generated password shown large and
   monospace with a copy button beneath it.
═══════════════════════════════════════════════════════════════════════════ */
#pgOutput {
    margin-top: 1.75rem;
    padding: 1.5rem 1.25rem 1.25rem;
    background: rgba(0, 180, 216, 0.06);
    border: 1px solid rgba(0, 180, 216, 0.25);
    border-left: 4px solid var(--pg-teal);
    border-radius: 10px;
    text-align: center;
}

.pg-output-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--pg-teal);
    margin-bottom: 0.75rem;
    display: block;
}

/* The generated password text itself.
 * Base size is 1rem — JS adds helper classes below to scale it up. */
#passwordHeading {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;          /* JS will add a helper class to enlarge it */
    color: #3ddc84;
    word-break: break-all;    /* prevents overflow on very long passwords */
    margin: 0 0 1rem;
    min-height: 1.6rem;
    text-align: center;
}

/* Copy button row — horizontally centred. */
.pg-copy-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Copy to clipboard button — teal pill, matches overall accent. */
.btn-pg-copy {
    background: var(--pg-teal);
    border: 2px solid var(--pg-teal);
    color: var(--tnt-dark);
    font-family: var(--boogaloo);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-pg-copy:hover { background: var(--pg-teal-dark); border-color: var(--pg-teal-dark); transform: scale(1.03); }

/* "Copied!" status text. */
#copyStatusPara {
    font-size: 0.82rem;
    color: #3ddc84;
    font-style: italic;
    min-height: 1.2rem;
}

/* Failure state — shown by JS adding this class. */
.failure { color: var(--tnt-red) !important; }


/* ═══════════════════════════════════════════════════════════════════════════
   12. FONT-SIZE HELPER CLASSES  (referenced by JS adjustPWFontSize function)
   The JS removes all classes from #passwordHeading and re-adds
   ["font-monospace","text-success","text-center"] plus one of these classes
   based on viewport width and password length.
═══════════════════════════════════════════════════════════════════════════ */
.larger-font1_5 { font-size: 1.5rem !important; }
.larger-font2   { font-size: 2rem   !important; }
.larger-font2_5 { font-size: 2.5rem !important; }


/* ═══════════════════════════════════════════════════════════════════════════
   13. ABOUT PAGE CONTENT
═══════════════════════════════════════════════════════════════════════════ */
#pgAbout {
    background: var(--tnt-dark);
    padding: 2.5rem 1rem 3.5rem;
}

#pgAbout .section-label { color: var(--pg-teal); }
#pgAbout .section-title { color: #fff; }

.pg-about-body {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: 760px;
}

.pg-about-body h6 {
    font-family: var(--boogaloo);
    font-size: 1.1rem;
    color: var(--pg-teal);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.pg-about-body strong { color: #3ddc84; }

.pg-about-body code {
    background: rgba(0, 180, 216, 0.15);
    color: var(--pg-teal);
    padding: 0.1em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

.pg-about-body .text-danger.fw-bold {
    color: var(--tnt-red) !important;
}

/* Monospace symbol examples in the About page. */
.pg-symbol-example {
    font-family: 'Courier New', Courier, monospace;
    color: var(--tnt-red);
    font-weight: 700;
    font-size: 0.9rem;
    word-break: break-all;
}


/* ═══════════════════════════════════════════════════════════════════════════
   14. RESPONSIVE ADJUSTMENTS
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 576px) {
    .pg-btn-row    { flex-direction: column; }
    .pg-copy-row   { flex-direction: column; }
    #pgOutput      { padding: 1rem; }
}
