/* ============================================
   SHARED COMPONENTS STYLESHEET
   Used by: navbar.html, footer.html, floating-cta.html
   ============================================ */

/* CSS Variables - Match your color scheme */
:root {
    --orange: #FF6B35;
    --orange-dark: #E85A2A;
    --green: #22D66F;
    --green-dark: #1DB05E;
    --green-light: #E8F5E9;
    --green-lighter: #F0FDF4;
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --cream: #FFF8F3;
    --border: #E2E8F0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    
    /* Health Pillar Colors - Single Source of Truth */
    /* Movement */
    --pillar-movement-bg: #FFD4C2;
    --pillar-movement-border: #FF6B35;
    
    /* Nutrition */
    --pillar-nutrition-bg: #E3F3D9;
    --pillar-nutrition-border: #8BC34A;
    
    /* Sleep */
    --pillar-sleep-bg: #E1F5FE;
    --pillar-sleep-border: #81D4FA;
    
    /* Mind */
    --pillar-mind-bg: #FDE3ED;
    --pillar-mind-border: #F48FB1;
    
    /* Stress */
    --pillar-stress-bg: #F0E8DF;
    --pillar-stress-border: #C19A6B;
    
    /* Connections */
    --pillar-connections-bg: #FFD9E5;
    --pillar-connections-border: #FF4081;
    
    /* Energy */
    --pillar-energy-bg: #FFF4D6;
    --pillar-energy-border: #FFCA28;
    
    /* Satisfaction */
    --pillar-satisfaction-bg: #BBDEFB;
    --pillar-satisfaction-border: #1976D2;
}

/* ============================================
   TOP PROMOTIONAL BANNER
   ============================================ */
.top-banner {
    background: linear-gradient(135deg, #E8F5E9 0%, #D4EDDA 100%);
    padding: 12px 20px;
    text-align: center;
    border-bottom: 2px solid var(--green);
    display: none; /* Hidden on mobile */
}

.top-banner-text {
    font-size: 16px;
    font-weight: 600;
    color: #155724;
    margin: 0;
}

@media (min-width: 640px) {
    .top-banner {
        display: block; /* Show on desktop */
    }
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.top-nav {
    background: white;
    border-bottom: 2px solid var(--orange);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px var(--shadow);
}

.nav-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo - hidden on mobile */
.logo {
    font-weight: 700;
    font-size: 18px;
    color: var(--orange);
    text-decoration: none;
    display: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.logo:hover {
    color: var(--orange-dark);
}

.logo.active {
    color: var(--green);
    font-weight: 800;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: space-between;
}

.nav-links a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 4px;
    transition: color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links a:hover {
    color: var(--orange-dark);
}

.nav-links a.active {
    color: var(--green);
    font-weight: 700;
}

/* Mobile/Desktop text alternatives */
.mobile-text {
    display: inline;
}

.desktop-text {
    display: none;
}

.nav-home-mobile {
    display: inline-block;
}

/* CTA Button */
.nav-cta-wrapper {
    display: inline-block;
    text-align: center;
    flex-shrink: 0;
}

.nav-cta {
    background: var(--green);
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
    line-height: 1.2;
    text-decoration: none !important;
    font-size: 13px;
}

.nav-cta:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    color: white !important;
}

.nav-cta-subtext {
    display: none;
    font-size: 11px;
    font-weight: 600;
    color: var(--orange);
    margin-top: 4px;
    white-space: nowrap;
}

/* Desktop Navigation */
@media (min-width: 640px) {
    .nav-content {
        padding: 0 40px;
    }
    
    .logo {
        display: block;
        font-size: 20px;
    }
    
    .nav-home-mobile {
        display: none;
    }
    
    .nav-links {
        gap: 20px;
        width: auto;
        justify-content: flex-start;
    }
    
    .nav-links a {
        font-size: 15px;
        padding: 8px 12px;
    }
    
    .mobile-text {
        display: none;
    }
    
    .desktop-text {
        display: inline;
    }
    
    .nav-cta {
        padding: 12px 24px !important;
        font-size: 14px;
    }
    
    .nav-cta-subtext {
        display: block;
    }
}

/* ============================================
   MISSION BANNER
   ============================================ */
.mission-banner {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: white;
    text-align: center;
    padding: 20px;
}

.mission-text {
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 600;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--cream);
    padding: 60px 20px 40px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-columns {
        gap: 60px;
    }
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .footer-col h4 {
        font-size: 16px;
        margin-bottom: 16px;
    }
}

.footer-col a {
    color: var(--orange);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

@media (min-width: 768px) {
    .footer-col a {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

.footer-col a:hover {
    color: var(--orange-dark);
    text-decoration: underline;
}

.footer-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-copyright {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   FLOATING CTA BAR (Mobile Only)
   ============================================ */
.floating-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid var(--orange);
    box-shadow: 0 -4px 12px var(--shadow);
    padding: 12px 16px;
    z-index: 999;
    display: block;
}

@media (min-width: 640px) {
    .floating-cta-bar {
        display: none;
    }
}

.floating-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.floating-cta-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
}

.floating-cta-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.floating-cta-left-badge,
.floating-cta-right-badge {
    background: var(--green-light);
    color: var(--green-dark);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.floating-cta-button {
    flex: 1;
    background: var(--orange);
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    transition: all 0.3s;
}

.floating-cta-button:hover {
    background: var(--orange-dark);
}

/* Add padding to body on mobile when floating CTA is present */
@media (max-width: 639px) {
    body {
        padding-bottom: 80px;
    }
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px var(--shadow-lg);
    padding: 24px;
    z-index: 9999;
    display: none;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    display: block;
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.cookie-text p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.cookie-text a {
    color: var(--orange);
    text-decoration: underline;
}

.cookie-categories {
    display: flex;
    gap: 20px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.cookie-category {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cookie-category input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-category label {
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 500;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.cookie-btn.accept-all {
    background: var(--green);
    color: white;
}

.cookie-btn.accept-all:hover {
    background: var(--green-dark);
}

.cookie-btn.accept-selected {
    background: white;
    color: var(--orange);
    border: 2px solid var(--orange);
}

.cookie-btn.accept-selected:hover {
    background: var(--orange);
    color: white;
}

.cookie-btn.reject-all {
    background: white;
    color: var(--text-secondary);
    border: 2px solid var(--border);
}

.cookie-btn.reject-all:hover {
    background: var(--cream);
}

/* ============================================
   HEALTH PILLAR EMOJI ENHANCEMENTS
   Optional styling for auto-injected emojis
   ============================================ */

/* Ensure emojis render consistently across browsers */
.action-title,
.action-label,
.blocks-pillar-name,
.pillar-label,
.metric-name,
.health-metric,
.pillar-reference {
    /* Prevent emoji font substitution issues */
    font-feature-settings: "kern" 1;
}

/* Add consistent spacing after health pillar emojis */
.action-title::first-letter,
.action-label::first-letter,
.blocks-pillar-name::first-letter,
.pillar-label::first-letter,
.metric-name::first-letter,
.health-metric::first-letter,
.pillar-reference::first-letter {
    /* If the first character is an emoji, add right margin */
    margin-right: 0.3em;
}

/* Ensure emojis scale properly with their text */
.action-title,
.action-label,
.pillar-label,
.metric-name {
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.3em;
}

/* Specific emoji sizing for different contexts */
.action-emoji,
.pillar-emoji,
.pillar-icon {
    font-size: 1.2em;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* Prevent emoji wrapping separately from text */
.action-title,
.action-label,
.pillar-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 640px) {
    .action-title,
    .action-label,
    .pillar-label {
        white-space: normal;
    }
}

/* ============================================
   HEALTH PILLAR SPECIFIC COLORS
   For elements that reference pillars
   ============================================ */

/* Optional: Add subtle colored borders for pillar references */
[data-pillar="energy"] {
    border-left-color: var(--pillar-energy-border);
}

[data-pillar="sleep"] {
    border-left-color: var(--pillar-sleep-border);
}

[data-pillar="movement"] {
    border-left-color: var(--pillar-movement-border);
}

[data-pillar="nutrition"] {
    border-left-color: var(--pillar-nutrition-border);
}

[data-pillar="mind"] {
    border-left-color: var(--pillar-mind-border);
}

[data-pillar="stress"] {
    border-left-color: var(--pillar-stress-border);
}

[data-pillar="connections"] {
    border-left-color: var(--pillar-connections-border);
}

[data-pillar="satisfaction"] {
    border-left-color: var(--pillar-satisfaction-border);
}

/* ============================================
   HEALTH PILLAR ICON COLORS (Universal)
   Use these classes on any page for consistent icon styling
   ============================================ */

/* Block Icon Backgrounds (Bold colors for prominent icons) */
.block-energy,
.icon-energy { 
    background: var(--pillar-energy-border); 
}

.block-stress,
.icon-stress { 
    background: var(--pillar-stress-border); 
}

.block-mind,
.icon-mind { 
    background: var(--pillar-mind-border); 
}

.block-movement,
.icon-movement { 
    background: var(--pillar-movement-border); 
}

.block-nutrition,
.icon-nutrition { 
    background: var(--pillar-nutrition-border); 
}

.block-sleep,
.icon-sleep { 
    background: var(--pillar-sleep-border); 
}

.block-social,
.block-connections,
.icon-connections { 
    background: var(--pillar-connections-border); 
}

.block-purpose,
.block-satisfaction,
.icon-satisfaction { 
    background: var(--pillar-satisfaction-border); 
}

/* Pillar Icon Backgrounds (Pastel colors for subtle backgrounds) */
.pillar-bg-energy { 
    background: var(--pillar-energy-bg); 
}

.pillar-bg-stress { 
    background: var(--pillar-stress-bg); 
}

.pillar-bg-mind { 
    background: var(--pillar-mind-bg); 
}

.pillar-bg-movement { 
    background: var(--pillar-movement-bg); 
}

.pillar-bg-nutrition { 
    background: var(--pillar-nutrition-bg); 
}

.pillar-bg-sleep { 
    background: var(--pillar-sleep-bg); 
}

.pillar-bg-connections { 
    background: var(--pillar-connections-bg); 
}

.pillar-bg-satisfaction { 
    background: var(--pillar-satisfaction-bg); 
}

/* Dot Colors (For data visualization) */
.dot-energy { 
    background: var(--pillar-energy-border); 
}

.dot-stress { 
    background: var(--pillar-stress-border); 
}

.dot-mind { 
    background: var(--pillar-mind-border); 
}

.dot-movement { 
    background: var(--pillar-movement-border); 
}

.dot-nutrition { 
    background: var(--pillar-nutrition-border); 
}

.dot-sleep { 
    background: var(--pillar-sleep-border); 
}

.dot-social,
.dot-connections { 
    background: var(--pillar-connections-border); 
}

.dot-purpose,
.dot-satisfaction { 
    background: var(--pillar-satisfaction-border); 
}

/* Text Colors (For pillar-themed text) */
.text-pillar-energy { 
    color: var(--pillar-energy-border); 
}

.text-pillar-stress { 
    color: var(--pillar-stress-border); 
}

.text-pillar-mind { 
    color: var(--pillar-mind-border); 
}

.text-pillar-movement { 
    color: var(--pillar-movement-border); 
}

.text-pillar-nutrition { 
    color: var(--pillar-nutrition-border); 
}

.text-pillar-sleep { 
    color: var(--pillar-sleep-border); 
}

.text-pillar-connections { 
    color: var(--pillar-connections-border); 
}

.text-pillar-satisfaction { 
    color: var(--pillar-satisfaction-border); 
}

/* Border Colors (For pillar-themed borders) */
.border-pillar-energy { 
    border-color: var(--pillar-energy-border); 
}

.border-pillar-stress { 
    border-color: var(--pillar-stress-border); 
}

.border-pillar-mind { 
    border-color: var(--pillar-mind-border); 
}

.border-pillar-movement { 
    border-color: var(--pillar-movement-border); 
}

.border-pillar-nutrition { 
    border-color: var(--pillar-nutrition-border); 
}

.border-pillar-sleep { 
    border-color: var(--pillar-sleep-border); 
}

.border-pillar-connections { 
    border-color: var(--pillar-connections-border); 
}

.border-pillar-satisfaction { 
    border-color: var(--pillar-satisfaction-border); 
}

/* ============================================
   PILLAR LABEL BASE STYLING (For circular diagrams)
   Core styling for pillar labels - position, border, padding
   ============================================ */

.pillar-label {
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    padding: 8px 12px;
    border-radius: 12px;
    border: 2px solid;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: all 0.6s ease-out;
    box-shadow: 0 0 0 3px white;
}

.pillar-label.visible {
    opacity: 1;
}

/* ============================================
   PILLAR LABEL COLORS (For circular diagrams)
   Background and border colors for pillar labels
   ============================================ */

.pillar-label[data-pillar="movement"] {
    background: var(--pillar-movement-bg);
    border-color: var(--pillar-movement-border);
}

.pillar-label[data-pillar="nutrition"] {
    background: var(--pillar-nutrition-bg);
    border-color: var(--pillar-nutrition-border);
}

.pillar-label[data-pillar="sleep"] {
    background: var(--pillar-sleep-bg);
    border-color: var(--pillar-sleep-border);
}

.pillar-label[data-pillar="mind"] {
    background: var(--pillar-mind-bg);
    border-color: var(--pillar-mind-border);
}

.pillar-label[data-pillar="stress"] {
    background: var(--pillar-stress-bg);
    border-color: var(--pillar-stress-border);
}

.pillar-label[data-pillar="connections"] {
    background: var(--pillar-connections-bg);
    border-color: var(--pillar-connections-border);
}

.pillar-label[data-pillar="energy"] {
    background: var(--pillar-energy-bg);
    border-color: var(--pillar-energy-border);
}

.pillar-label[data-pillar="satisfaction"] {
    background: var(--pillar-satisfaction-bg);
    border-color: var(--pillar-satisfaction-border);
}

