/* ============================================================
   HUMBRELLA WEATHER APP — BASE STYLES
   /weather/css/weather-base.css  v1.0
   
   Shared across all weather app pages:
   - Reset & base typography
   - Sky background & star animations
   - Brand header bar (member version)
   - Back navigation
   - Section patterns
   - Buttons
   - Glass card patterns
   - Footer
   - Responsive
   ============================================================ */

/* ── Variables ── */
:root {
    --hum-teal: #28b3bd;
    --hum-magenta: #c54685;
    --hum-gold: #ffd659;
    --hum-dark: #1a1a2e;
    
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    
    --clear-color: #5bb89a;
    --clear-bg: rgba(91, 184, 154, 0.12);
    --clear-border: rgba(91, 184, 154, 0.25);
    
    --glass-light: rgba(255, 255, 255, 0.08);
    --glass-medium: rgba(255, 255, 255, 0.12);
    
    --text-light: #f1f1f1;
    --text-muted: #a0a0b8;
    --text-soft: #c8c8d8;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    background: #163a3e;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
::selection { background: var(--hum-teal); color: white; }

/* ── Sky Background ── */
.sky-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(165deg, #1a1a2e 0%, #1e2038 30%, #2a2248 55%, #1e1a30 100%);
}

.sky-star {
    position: absolute;
    width: 2px; height: 2px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle var(--dur, 3s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}
@keyframes twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: var(--brightness, 0.4); }
}

.sky-particle {
    position: absolute;
    width: 3px; height: 3px;
    background: rgba(40, 179, 189, 0.08);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat var(--dur, 8s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}
@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0) translateX(0); }
    20% { opacity: var(--brightness, 0.25); }
    80% { opacity: var(--brightness, 0.25); }
    100% { opacity: 0; transform: translateY(-120px) translateX(30px); }
}

/* ── Brand Header Bar (Member Version) ── */
.brand-bar {
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, rgba(140, 40, 75, 0.92), rgba(165, 50, 90, 0.92));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-bar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    transition: opacity 0.3s ease;
}
.brand-bar-logo:hover { opacity: 0.85; }

.brand-bar-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.brand-bar-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: #f0f0f0;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-bar-tagline {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.member-badge {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    padding: 6px 16px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #ffd659, #f0c030);
    letter-spacing: 0.5px;
}

/* ── Layout ── */
.page-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ── Back Navigation ── */
.back-nav {
    padding: 16px 0 8px;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}
.back-link:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}
.back-link svg { width: 16px; height: 16px; stroke: currentColor; }

/* ── Section Patterns ── */
.section-header { text-align: center; margin-bottom: 36px; }

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 16px;
}
.section-label-journey {
    color: var(--hum-teal);
    background: rgba(40, 179, 189, 0.12);
    border: 1px solid rgba(40, 179, 189, 0.25);
}
.section-label-clearing {
    color: var(--clear-color);
    background: var(--clear-bg);
    border: 1px solid var(--clear-border);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Buttons ── */
.cta-btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--hum-magenta), #a03870);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(197, 70, 133, 0.3);
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(197, 70, 133, 0.4);
    color: white;
}
.cta-btn-sm { font-size: 14px; padding: 10px 24px; }
.cta-btn-lg { font-size: 17px; padding: 16px 40px; }

.cta-btn-outline {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--hum-teal);
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 9999px;
    background: transparent;
    border: 1px solid rgba(40, 179, 189, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}
.cta-btn-outline:hover {
    background: rgba(40, 179, 189, 0.12);
    border-color: var(--hum-teal);
    color: var(--text-light);
    transform: translateY(-2px);
}
.cta-btn-outline-lg { font-size: 16px; padding: 14px 36px; }

.cta-btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #ffd659, #f0c030);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cta-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 214, 89, 0.3);
}

/* ── Inline Links ── */
.inline-link {
    color: var(--hum-teal);
    text-decoration: underline;
    text-decoration-color: rgba(40, 179, 189, 0.3);
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
.inline-link:hover {
    color: var(--hum-gold);
    text-decoration-color: rgba(255, 214, 89, 0.4);
}

/* ── Emotion Tag Pills ── */
.emotion-tag {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: default;
}

/* ── Thought Banner ── */
.thought-banner {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 20px;
    text-align: center;
    margin: 0 auto 28px;
    max-width: 520px;
    backdrop-filter: blur(8px);
}
.thought-banner .label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}
.thought-banner .thought-text {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text-light);
    font-size: 16px;
}

/* ── Page Progress Dots ── */
.page-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 0 8px;
}
.page-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    transition: all 0.3s;
}
.page-dot.active { background: var(--hum-gold); width: 24px; border-radius: 4px; }
.page-dot.completed { background: var(--hum-teal); }
.page-dot.upcoming { background: rgba(255, 255, 255, 0.15); }

/* ── Animations ── */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Footer ── */
.site-footer {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(15, 15, 30, 0.95), rgba(10, 10, 22, 0.98));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 28px 32px;
    margin-top: 64px;
}
.footer-inner { max-width: 900px; margin: 0 auto; }
.footer-brand { text-align: center; margin-bottom: 32px; }
.footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.footer-logo-link:hover { opacity: 0.8; }
.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: #f0f0f0;
}
.footer-tagline {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
    letter-spacing: 0.5px;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 64px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-heading {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--hum-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}
.footer-col a {
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-col a:hover { color: rgba(255, 255, 255, 0.9); }
.footer-bottom { text-align: center; padding-top: 24px; }
.footer-bottom p {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.6;
}
.footer-disclaimer {
    margin-top: 8px;
    font-size: 12px !important;
    font-style: italic;
    color: rgba(255, 255, 255, 0.25) !important;
}
.footer-disclaimer a {
    color: rgba(255, 214, 89, 0.5);
    text-decoration: none;
}
.footer-disclaimer a:hover { color: rgba(255, 214, 89, 0.8); }

/* ── Responsive ── */
@media (max-width: 767px) {
    .brand-bar { padding: 10px 16px; }
    .brand-bar-name { font-size: 16px; }
    .brand-bar-tagline { font-size: 10px; }
    .member-badge { font-size: 12px; padding: 5px 12px; }
    .container { padding: 0 20px; }
    .footer-links { flex-direction: column; align-items: center; gap: 28px; }
    .footer-col { align-items: center; text-align: center; }
    .site-footer { padding: 36px 20px 24px; }
}

@media (max-width: 375px) {
    body { font-size: 15px; }
    .container { padding: 0 16px; }
    .brand-bar-text { display: none; }
}

/* ── Accessibility ── */
:focus-visible { outline: 2px solid var(--hum-teal); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01s !important;
        transition-duration: 0.01s !important;
    }
}
