/* =========================================
   July Life Coach — Hub (here.julylifecoach.com)
   The platform catalog page
   ========================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-deep: #07090d;
    --bg-surface: #0d1117;
    --bg-card: #131820;
    --bg-card-hover: #1a2230;
    --text-primary: #e6e8ec;
    --text-secondary: #8b919a;
    --text-muted: #565d68;
    --accent: #C27C5A;
    --accent-glow: rgba(194, 124, 90, 0.15);
    --accent-hover: #d4906e;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --font-serif: 'Libre Baskerville', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.section-pad {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: 0.85rem 2rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(194, 124, 90, 0.3);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PLATFORM NAV
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hub-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem clamp(1.5rem, 4vw, 3rem);
    background: rgba(7, 9, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.hub-nav-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.hub-brand {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.hub-nav-cats {
    display: flex;
    gap: 1.5rem;
}

.hub-nav-link {
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: color 0.2s;
    white-space: nowrap;
}
.hub-nav-link:hover { color: var(--text-primary); }

.hub-nav-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.hub-nav-map {
    color: var(--accent) !important;
    font-weight: 500;
}

.hub-signin-btn {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-hover);
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.hub-signin-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CONTINUE YOUR JOURNEY
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.continue-section {
    padding: 5rem 0 1rem;
}

.continue-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.5rem 0;
}
.continue-row::-webkit-scrollbar { display: none; }

.continue-card {
    flex: 0 0 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}
.continue-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.continue-icon { font-size: 1.8rem; flex-shrink: 0; }

.continue-info h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.continue-status {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 500;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FEATURED HERO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hub-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    padding: 5rem clamp(2rem, 6vw, 5rem) 3.5rem;
    margin-top: 52px; /* nav height */
    overflow: hidden;
}

.hub-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a0f0a 0%, #2a1810 25%, #0d1117 65%, #07090d 100%);
}
.hub-hero-bg::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 8%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(194, 124, 90, 0.1) 0%, transparent 70%);
    animation: heroDrift 12s ease-in-out infinite;
}
.hub-hero-bg::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent 0%, var(--bg-deep) 100%);
    z-index: 1;
}

@keyframes heroDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-15px, 10px) scale(1.08); }
}

.hub-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hub-hero-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    margin-bottom: 1.2rem;
}

.hub-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hub-hero-desc {
    font-size: clamp(0.88rem, 1.3vw, 1rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 480px;
}

.hub-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.8rem;
}

.meta-pill {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}
.meta-pill--free {
    color: var(--accent);
    border-color: rgba(194, 124, 90, 0.2);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CATALOG SECTIONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.catalog-section {
    padding: clamp(3rem, 5vw, 4.5rem) 0;
    border-top: 1px solid var(--border);
}

.row-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
}

.row-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.1rem;
}

/* ─── Experience Card ─── */
.exp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.exp-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.exp-visual {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.exp-icon {
    font-size: 2.8rem;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.3));
}

/* Per-experience gradients */
.exp-visual--sa { background: linear-gradient(135deg, #2a1810 0%, #1a0f0a 100%); }
.exp-visual--rm { background: linear-gradient(135deg, #141828 0%, #0d1020 100%); }
.exp-visual--pm { background: linear-gradient(135deg, #0d1820 0%, #0a1218 100%); }
.exp-visual--af { background: linear-gradient(135deg, #201515 0%, #180d0d 100%); }
.exp-visual--res { background: linear-gradient(135deg, #151a20 0%, #0d1218 100%); }
.exp-visual--space { background: linear-gradient(135deg, #1a1a12 0%, #12120a 100%); }
.exp-visual--am { background: linear-gradient(135deg, #1f1c10 0%, #15140a 100%); }
.exp-visual--enc { background: linear-gradient(135deg, #0f201a 0%, #0a1510 100%); }
.exp-visual--weight { background: linear-gradient(135deg, #1a1a1a 0%, #111111 100%); }
.exp-visual--proc { background: linear-gradient(135deg, #1c1a10 0%, #14120a 100%); }
.exp-visual--pk { background: linear-gradient(135deg, #201812 0%, #181008 100%); }
.exp-visual--conv { background: linear-gradient(135deg, #15101a 0%, #0d0a12 100%); }
.exp-visual--heart { background: linear-gradient(135deg, #1a1015 0%, #120a0d 100%); }
.exp-visual--karma { background: linear-gradient(135deg, #101a18 0%, #0a1210 100%); }
.exp-visual--do { background: linear-gradient(135deg, #101520 0%, #0a0d18 100%); }
.exp-visual--self { background: linear-gradient(135deg, #1a1520 0%, #120d18 100%); }
.exp-visual--lib { background: linear-gradient(135deg, #181818 0%, #101010 100%); }
.exp-visual--guide { background: linear-gradient(135deg, #18150d 0%, #100d08 100%); }
.exp-visual--prompts { background: linear-gradient(135deg, #1a1518 0%, #120d10 100%); }
.exp-visual--map { background: linear-gradient(135deg, #101820 0%, #0a1018 100%); }

.exp-body {
    padding: 1.2rem 1.3rem 1.3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.exp-body h3 {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.exp-body p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.exp-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
}

.exp-type {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.exp-tag {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 0.22rem 0.55rem;
    border-radius: 3px;
}

.exp-tag--premium {
    color: #d4a843;
    background: rgba(212, 168, 67, 0.12);
}

.exp-card--premium {
    border-color: rgba(212, 168, 67, 0.15);
}
.exp-card--premium:hover {
    border-color: rgba(212, 168, 67, 0.3);
}

.exp-card--map {
    border-style: dashed;
}

.exp-card--browse .exp-visual { opacity: 0.7; }
.exp-card--browse:hover .exp-visual { opacity: 1; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hub-footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
}
.footer-brand {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}
.footer-links { margin-bottom: 0.5rem; }
.footer-links a, .footer-legal a {
    color: var(--text-muted);
    transition: color 0.2s;
}
.footer-links a:hover, .footer-legal a:hover { color: var(--text-primary); }
.footer-legal { margin-bottom: 1rem; font-size: 0.75rem; }
.footer-copy { font-size: 0.72rem; opacity: 0.5; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
    .hub-nav-cats { display: none; }
    .hub-hero { min-height: 400px; padding-top: 4rem; }
    .hub-hero-title { font-size: 2rem; }
    .catalog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hub-nav { padding: 0.8rem 1rem; }
    .hub-hero { padding: 3.5rem 1.2rem 2.5rem; }
    .hub-hero-title { font-size: 1.7rem; }
    .hub-hero-desc { font-size: 0.85rem; }
}
