/* =========================================================================
   user-guide.css — User Guide section styles (NextGen)
   Harmonized with the site design system: navy / teal / sand, Fraunces + Inter.
   Structural classes carried over from the legacy guide, re-skinned with
   the site CSS variables (see site.css :root).
   ========================================================================= */

/* ---------- Page shell ---------- */
.guide-hero {
    padding: clamp(48px, 7vw, 84px) 0 clamp(20px, 3vw, 36px);
}

.guide-hero .lead { max-width: 62ch; }

.guide-content {
    margin-bottom: clamp(40px, 6vw, 64px);
}

.guide-section {
    margin-bottom: 40px;
    scroll-margin-top: 100px; /* account for fixed navigation */
}

/* ---------- Intro / callout blocks ---------- */
.guide-intro {
    background: var(--cream);
    border: 1px solid var(--line);
    padding: 25px 30px;
    border-radius: var(--r);
    margin: 32px 0 40px;
    text-align: center;
}

.guide-intro h3 { margin-bottom: .5rem; }

.guide-intro p {
    margin: 0;
    font-size: 1.06rem;
    color: var(--body);
    line-height: 1.6;
}

/* White panel (booking process overview, platform chooser, partner blocks) */
.guide-panel {
    background: var(--paper);
    padding: 30px;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.guide-panel > h2 { text-align: center; margin-bottom: 20px; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.guide-panel > p { color: var(--body); }
.guide-panel p.centered { text-align: center; }

/* Grey grouping box used for sub-flows (Friend Lookup / Sailing Lookup etc.) */
.guide-group {
    background: var(--bg);
    padding: 25px 30px;
    border-radius: var(--r);
    margin-bottom: 30px;
}

.guide-group > h3 { margin-bottom: 20px; font-size: 1.4rem; }

/* ---------- Platform cards (Web Portal / Smartphone App) ---------- */
.platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.platform-card {
    text-align: center;
    padding: 20px;
    border: 2px solid var(--navy);
    border-radius: var(--r);
    background: var(--paper);
}

.platform-card--app { border-color: var(--sand); }

.platform-card--disabled {
    border-color: var(--line);
    background: var(--bg);
}

.platform-card--disabled h3, .platform-card--disabled p { color: var(--muted); }

.platform-card .pc-ico {
    font-size: 2.4rem;
    margin-bottom: 12px;
    color: var(--navy);
}

.platform-card--app .pc-ico { color: var(--sand); }
.platform-card--disabled .pc-ico { color: var(--muted); }

.platform-card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.platform-card p { color: var(--body); font-size: 0.95rem; margin: 0; }

/* ---------- Guide parts (Web Portal / Smartphone App sections) ---------- */
.guide-part { margin-bottom: 60px; }

.guide-part-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--navy);
}

.guide-part--app .guide-part-head { border-bottom-color: var(--sand); }

.guide-part-head .gp-ico {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: rgba(24, 60, 136, .10);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.guide-part--app .guide-part-head .gp-ico {
    background: rgba(244, 162, 76, .16);
    color: #c2761a;
}

.guide-part-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2rem); }

.guide-part > p { font-size: 1.06rem; color: var(--body); margin-bottom: 25px; }

/* ---------- Step-by-step guide ---------- */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-item {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--teal);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.step-content {
    flex: 1;
    background: var(--paper);
    padding: 25px;
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    min-width: 0;
}

.step-content h3 { margin-bottom: 12px; font-size: 1.3rem; }

.step-content h4 {
    margin-bottom: 10px;
    margin-top: 20px;
    font-size: 1.08rem;
}

.step-content h3:first-child, .step-content h4:first-child { margin-top: 0; }

.step-content p { margin-bottom: 15px; line-height: 1.6; color: var(--body); }
.step-content p:last-child { margin-bottom: 0; }

.step-content ul { margin: 15px 0; padding-left: 25px; }
.step-content li { margin-bottom: 8px; color: var(--body); line-height: 1.5; }
.step-content li img { display: inline-block; vertical-align: middle; }

/* ---------- Tip boxes ---------- */
.tip-box {
    background: rgba(244, 162, 76, .12);
    padding: 15px 20px;
    border-radius: var(--r-sm);
    margin: 15px 0;
    border-left: 4px solid var(--sand);
    color: var(--body);
}

.tip-box strong { color: #8a5a17; }
.tip-box a { font-weight: 600; }

/* Informational note (light teal) */
.note-box {
    background: rgba(46, 140, 146, .10);
    padding: 20px;
    border-radius: var(--r-sm);
    margin: 20px 0;
    border-left: 4px solid var(--teal);
    color: var(--body);
}

.note-box h4 { margin-bottom: 10px; }
.note-box p { margin: 0; }

/* ---------- Feature highlight band ---------- */
.feature-highlight {
    background: linear-gradient(135deg, var(--navy), var(--navy-700));
    color: #fff;
    padding: 30px;
    border-radius: var(--r-lg);
    margin: 30px 0;
    text-align: center;
}

.feature-highlight h3 { color: #fff; font-size: 1.5rem; margin-bottom: 12px; }
.feature-highlight p { font-size: 1.06rem; margin: 0; color: #cdd8f2; line-height: 1.6; }

/* ---------- Screenshots ---------- */
.shot-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
    text-align: center;
}

.mobile-screenshot {
    max-width: 180px;
    height: auto;
    border-radius: var(--r-sm);
    box-shadow: var(--shadow);
    margin-inline: auto;
}

.desktop-screenshot {
    max-width: 100%;
    width: 700px;
    height: auto;
    border-radius: var(--r-sm);
    box-shadow: var(--shadow);
    margin-inline: auto;
}

.mobile-screenshot-container,
.desktop-screenshot-container {
    background: var(--paper);
    border: 1px dashed var(--line);
    border-radius: var(--r);
    padding: 16px;
    color: var(--muted);
    text-align: center;
}

.mobile-screenshot-container { max-width: 250px; }

.mobile-screenshot-container p,
.desktop-screenshot-container p {
    margin: 8px 0 0;
    font-size: .85rem;
    color: var(--muted);
}

/* NOTE: screenshots currently show the previous app design; replace later. */

/* ---------- Inline guide links ---------- */
.guide-link {
    color: var(--teal-700);
    font-weight: 600;
    text-decoration: none;
}

.guide-link:hover { color: var(--teal); }

/* ---------- Guide topic cards (Index / Add Sailing hubs) ---------- */
.guide-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 22px;
}

.guide-card {
    background: var(--paper);
    padding: 26px;
    border-radius: var(--r-lg);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--teal);
    color: inherit;
}

.guide-card .gc-ico {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: rgba(24, 60, 136, .10);
    color: var(--navy);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.guide-card .gc-body { flex: 1; }
.guide-card .gc-body h3 { margin-bottom: 8px; font-size: 1.25rem; }
.guide-card .gc-body p { color: var(--body); margin-bottom: 0; line-height: 1.5; font-size: .95rem; }
.guide-card .gc-body .card-features { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.feature-tag {
    background: rgba(46, 140, 146, .12);
    color: var(--teal-700);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
}

.guide-card .gc-arrow {
    font-size: 1.1rem;
    color: var(--teal);
    flex-shrink: 0;
}

/* ---------- Icon reference rows (Icons & Symbols) ---------- */
.icon-list { display: grid; gap: 16px; }

.icon-row {
    background: var(--paper);
    padding: 20px;
    border-radius: var(--r);
    border: 1px solid var(--line);
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 15px;
    align-items: center;
}

.icon-row .ir-img { text-align: center; }
.icon-row .ir-img img { width: 32px; height: 32px; margin-inline: auto; }
.icon-row h4 { margin-bottom: 5px; }
.icon-row p { margin: 0; color: var(--body); font-size: .95rem; }

/* ---------- Small info tiles (benefits, privacy levels) ---------- */
.tile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tile-grid--stack { grid-template-columns: 1fr; }

.guide-tile {
    padding: 18px 20px;
    background: var(--paper);
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
}

.guide-tile h5 {
    font-family: var(--font-display);
    color: var(--ink);
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.guide-tile p { margin: 0; font-size: .93rem; color: var(--body); }

/* Status notes (current process / future plans) */
.guide-tile--warn { background: rgba(244, 162, 76, .12); border-color: rgba(244, 162, 76, .4); }
.guide-tile--warn h5, .guide-tile--warn h4 { color: #8a5a17; }
.guide-tile--info { background: rgba(46, 140, 146, .10); border-color: rgba(46, 140, 146, .35); }
.guide-tile--info h5, .guide-tile--info h4 { color: var(--teal-700); }
.guide-tile h4 { margin: 0 0 8px; font-size: 1.05rem; }

/* ---------- App download buttons ---------- */
.app-download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.app-download-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 15px;
    border-radius: var(--r);
    transition: transform .18s ease, box-shadow .18s ease;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.app-download-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: inherit;
}

.app-download-link img { height: 50px; width: auto; margin-bottom: 8px; }
.app-download-link span { font-size: .9rem; font-weight: 600; color: var(--navy); }

/* ---------- Support cards (Need additional help?) ---------- */
.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

/* ---------- Misc ---------- */
.partner-logo { margin: 16px auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .platform-grid { grid-template-columns: 1fr; gap: 16px; }
    .tile-grid { grid-template-columns: 1fr; }
    .guide-cards-grid { grid-template-columns: 1fr; }

    .guide-part-head { flex-direction: column; text-align: center; gap: 12px; }

    .step-item { flex-direction: column; gap: 15px; }
    .step-number { width: 40px; height: 40px; font-size: 1.05rem; }
    .step-content { padding: 20px; }
    .step-content h3 { font-size: 1.18rem; }

    .mobile-screenshot { max-width: 160px; }
    .mobile-screenshot-container { max-width: 220px; }
    .desktop-screenshot { width: 100%; }
}

@media (max-width: 480px) {
    .guide-intro { padding: 20px; }
    .guide-panel { padding: 22px 20px; }
    .feature-highlight { padding: 25px 20px; }
    .feature-highlight h3 { font-size: 1.3rem; }
    .app-download-link img { height: 45px; }
}

/* ---------- Print ---------- */
@media print {
    .guide-cta-section { display: none; }
    .guide-section, .step-item { break-inside: avoid; page-break-inside: avoid; }
}
