/* =========================================
   July Life Coach — Platform Frame CSS
   Auth gate + nav + footer + next experience
   ========================================= */

/* ─── Auth Gate (the front door) ─── */
.auth-gate {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #07090d;
    transition: opacity 0.4s ease;
}

.auth-gate-inner {
    max-width: 400px;
    width: 90vw;
    text-align: center;
    padding: 2rem;
}

.auth-gate-brand {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 0.85rem;
    color: #565d68;
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}

.auth-gate-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 400;
    color: #e6e8ec;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.auth-gate-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: #8b919a;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.auth-gate-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.auth-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e6e8ec;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input:focus {
    outline: none;
    border-color: rgba(194, 124, 90, 0.5);
    box-shadow: 0 0 0 3px rgba(194, 124, 90, 0.1);
}
.auth-input::placeholder { color: #565d68; }

.auth-btn {
    width: 100%;
    padding: 0.9rem;
    background: #C27C5A;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.3rem;
}
.auth-btn:hover {
    background: #d4906e;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(194, 124, 90, 0.3);
}
.auth-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.8rem 0;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}
.auth-divider span {
    font-size: 0.75rem;
    color: #565d68;
}

.auth-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #e6e8ec;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.auth-google:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.auth-login-link {
    font-size: 0.82rem;
    color: #565d68;
    margin-top: 1rem;
}
.auth-login-link a {
    color: #C27C5A;
    text-decoration: none;
    font-weight: 500;
}
.auth-login-link a:hover { color: #d4906e; }

.auth-gate-note {
    font-size: 0.72rem;
    color: #565d68;
    margin-top: 1.5rem;
    opacity: 0.7;
}

.auth-gate-details {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #8b919a;
    margin-bottom: 2rem;
    letter-spacing: 0.04em;
}

/* ─── Platform Nav ─── */
.platform-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem clamp(1rem, 3vw, 2rem);
    background: rgba(7, 9, 13, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'Inter', -apple-system, sans-serif;
}

.pn-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #8b919a;
    transition: all 0.2s;
}
.pn-back:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e6e8ec;
}

.pn-brand {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 0.95rem;
    color: #e6e8ec;
    text-decoration: none;
}

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

.pn-link {
    font-size: 0.8rem;
    color: #565d68;
    text-decoration: none;
    transition: color 0.2s;
}
.pn-link:hover { color: #e6e8ec; }

.pn-signin {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #e6e8ec;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.pn-signin:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* ─── Account Dropdown ─── */
.pn-account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: rgba(19, 24, 32, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
    pointer-events: none;
    transition: all 0.2s ease;
    overflow: hidden;
    z-index: 200;
}
.pn-account-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.pn-dd-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 0.9rem;
    background: none;
    border: none;
    color: #c0c4cc;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    text-align: left;
}
.pn-dd-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e6e8ec;
}
.pn-dd-item svg { opacity: 0.6; flex-shrink: 0; }
.pn-dd-item:hover svg { opacity: 1; }
.pn-dd-profile { color: #C27C5A; font-weight: 500; }
.pn-dd-profile svg { stroke: #C27C5A; opacity: 0.8; }
.pn-dd-sep {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0.2rem 0;
}
.pn-dd-logout { color: #9b6b6b; }
.pn-dd-logout:hover { color: #d47c7c; background: rgba(180, 80, 80, 0.08); }
.pn-dd-logout svg { stroke: #9b6b6b; }
.pn-dd-logout:hover svg { stroke: #d47c7c; }

body { padding-top: 50px !important; }

/* ─── Platform Footer ─── */
.platform-footer {
    text-align: center;
    padding: 0 1.5rem 2.5rem;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.82rem;
    color: #565d68;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pf-links { margin-bottom: 0.5rem; }
.pf-links a { color: #565d68; text-decoration: none; transition: color 0.2s; }
.pf-links a:hover { color: #e6e8ec; }
.pf-copy { font-size: 0.72rem; opacity: 0.5; }

/* ─── Next Experience Card ─── */
.pf-next {
    padding: 2.5rem 0;
    max-width: 500px;
    margin: 0 auto;
}

.pf-next-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #C27C5A;
    margin-bottom: 0.75rem;
}

.pf-next-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: #131820;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-decoration: none;
    color: #e6e8ec;
    transition: all 0.3s ease;
}
.pf-next-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: #1a2230;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.pf-next-icon { font-size: 2rem; flex-shrink: 0; }
.pf-next-info { flex: 1; }
.pf-next-info h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; }
.pf-next-info p { font-size: 0.78rem; color: #8b919a; line-height: 1.5; }
.pf-next-arrow { font-size: 1.2rem; color: #C27C5A; flex-shrink: 0; transition: transform 0.2s; }
.pf-next-card:hover .pf-next-arrow { transform: translateX(3px); }

/* ─── Mobile ─── */
@media (max-width: 600px) {
    .pn-link { display: none; }
    .platform-nav { padding: 0.65rem 0.8rem; }
    .auth-gate-title { font-size: 2rem; }
    .auth-gate-inner { padding: 1.5rem; }

    .pn-menu-btn { display: flex !important; }
    .pn-signin { font-size: 0.72rem; padding: 0.35rem 0.7rem; }
}

/* ─── Mobile menu overlay ─── */
.pn-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: none; border: none;
    color: #8b919a; cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}
.pn-menu-btn:hover { background: rgba(255,255,255,0.08); color: #e6e8ec; }
.pn-menu-btn svg { pointer-events: none; }

.pn-mobile-menu {
    position: fixed;
    top: 50px; left: 0; right: 0;
    z-index: 9998;
    background: rgba(7, 9, 13, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0.5rem 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
}
.pn-mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.pn-mobile-menu a {
    display: block;
    padding: 0.85rem 1.5rem;
    color: #8b919a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s;
    font-family: 'Inter', -apple-system, sans-serif;
}
.pn-mobile-menu a:hover,
.pn-mobile-menu a.active {
    color: #e6e8ec;
    background: rgba(255,255,255,0.04);
}
