/* ============================================
   Blog Post Styles - February 26, 2026
   "Someone Took Melatonin at 11PM..."
   ============================================ */

.blog-article {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-header {
    padding: 6rem 0 1.5rem;
    text-align: center;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.blog-category {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.blog-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.blog-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-featured-image {
    margin: 1.5rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-content {
    padding: 1.5rem 0 3rem;
}

.blog-content > p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.blog-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.blog-back-link:hover {
    gap: 0.6rem;
}

/* ============================================
   Chapter Headers
   ============================================ */
.chapter {
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(75, 65, 43, 0.1);
}

.chapter-number {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.chapter-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* ============================================
   Narrator / Editorial Voice
   ============================================ */
.narrator {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0.75rem 0 1.25rem;
    padding-left: 1rem;
    border-left: 3px solid rgba(137, 107, 46, 0.3);
}

/* ============================================
   Highlight Quote
   ============================================ */
.highlight-quote {
    background: linear-gradient(135deg, #faf9f7, #fff);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
    border: 1px solid rgba(75, 65, 43, 0.08);
}

.highlight-quote blockquote {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0 0 0.5rem;
    font-style: normal;
}

.highlight-quote cite {
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Fun Aside Callout
   ============================================ */
.fun-aside {
    background: #FFFDE7;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    margin: 1.25rem 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
    border-left: 4px solid #FDD835;
}

/* ============================================
   Emotion Tally Scorecard
   ============================================ */
.emotion-tally {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.tally-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-full);
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.tally-item .tally-emoji {
    font-size: 1rem;
}

.tally-item .tally-count {
    font-weight: 700;
    color: var(--text-primary);
}

.tally-item .tally-label {
    font-size: 0.75rem;
}

/* ============================================
   Social Media Style Signal Cards
   ============================================ */
.signals-feed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.signal-card {
    background: #fff;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition-fast);
}

.signal-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.signal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.signal-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.signal-user-info {
    flex: 1;
    min-width: 0;
}

.signal-emotion {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.signal-emotion-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.signal-feeling {
    font-size: 0.75rem;
    color: var(--text-light);
}

.signal-message {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.signal-message .hashtag {
    position: static;
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(75, 65, 43, 0.06);
    border-radius: var(--radius-full);
    box-shadow: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    margin: 0.15rem 0.1rem;
    cursor: default;
    transition: none;
}

.signal-message .hashtag:hover {
    background: rgba(75, 65, 43, 0.06);
    color: var(--primary);
    transform: none;
    box-shadow: none;
}

/* ============================================
   Emotion Colors
   ============================================ */

/* Sleepy */
.emotion-sleepy .signal-avatar { background: #EDE7F6; }
.emotion-sleepy .signal-emotion-dot { background: #7E57C2; }

/* Anxious */
.emotion-anxious .signal-avatar { background: #FFF3E0; }
.emotion-anxious .signal-emotion-dot { background: #EF6C00; }

/* Peaceful */
.emotion-peaceful .signal-avatar { background: #E8F5E9; }
.emotion-peaceful .signal-emotion-dot { background: #4CAF50; }

/* Overwhelmed */
.emotion-overwhelmed .signal-avatar { background: #FCE4EC; }
.emotion-overwhelmed .signal-emotion-dot { background: #AD1457; }

/* Grateful */
.emotion-grateful .signal-avatar { background: #E8F5E9; }
.emotion-grateful .signal-emotion-dot { background: #4CAF50; }

/* Sick */
.emotion-sick .signal-avatar { background: #E8F5E9; }
.emotion-sick .signal-emotion-dot { background: #66BB6A; }

/* Busy */
.emotion-busy .signal-avatar { background: #E3F2FD; }
.emotion-busy .signal-emotion-dot { background: #1565C0; }

/* Proud */
.emotion-proud .signal-avatar { background: #FFF8E1; }
.emotion-proud .signal-emotion-dot { background: #FFB300; }

/* Excited */
.emotion-excited .signal-avatar { background: #FFE0B2; }
.emotion-excited .signal-emotion-dot { background: #FF9800; }

/* Disappointed */
.emotion-disappointed .signal-avatar { background: #ECEFF1; }
.emotion-disappointed .signal-emotion-dot { background: #546E7A; }

/* Disrespected */
.emotion-disrespected .signal-avatar { background: #FFEBEE; }
.emotion-disrespected .signal-emotion-dot { background: #C62828; }

/* Happy */
.emotion-happy .signal-avatar { background: #FFF9C4; }
.emotion-happy .signal-emotion-dot { background: #FDD835; }

/* Sad */
.emotion-sad .signal-avatar { background: #E3F2FD; }
.emotion-sad .signal-emotion-dot { background: #5C6BC0; }

/* Hungry */
.emotion-hungry .signal-avatar { background: #FFF3E0; }
.emotion-hungry .signal-emotion-dot { background: #FF9800; }

/* Nothing */
.emotion-nothing .signal-avatar { background: #F5F5F5; }
.emotion-nothing .signal-emotion-dot { background: #9E9E9E; }

/* Old */
.emotion-old .signal-avatar { background: #EFEBE9; }
.emotion-old .signal-emotion-dot { background: #795548; }

/* Nostalgic */
.emotion-nostalgic .signal-avatar { background: #EDE7F6; }
.emotion-nostalgic .signal-emotion-dot { background: #7E57C2; }

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #faf9f7 0%, #fff 100%);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    margin: 2.5rem 0;
    border: 1px solid rgba(75, 65, 43, 0.08);
}

.cta-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.cta-section > p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cta-subtext {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.cta-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

.cta-divider::before,
.cta-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(75, 65, 43, 0.15);
}

.cta-divider span {
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-app-pitch {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.cta-btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(75, 65, 43, 0.25);
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #000;
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-fast);
    text-decoration: none;
}

.store-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

.store-btn svg {
    width: 20px;
    height: 20px;
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.store-btn-text small {
    font-size: 0.6rem;
    font-weight: 400;
    opacity: 0.8;
}

.store-btn-text span {
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================
   Mobile Responsive
   ============================================ */
@media (max-width: 640px) {
    .blog-header {
        padding: 5.5rem 0 1rem;
    }

    .blog-title {
        font-size: 1.5rem;
    }

    .blog-subtitle {
        font-size: 0.9rem;
    }

    .blog-content > p {
        font-size: 0.95rem;
    }

    .chapter {
        margin: 2rem 0 0.75rem;
    }

    .chapter-title {
        font-size: 1.05rem;
    }

    .narrator {
        font-size: 0.9rem;
        padding-left: 0.75rem;
    }

    .highlight-quote {
        padding: 1rem 1.25rem;
    }

    .highlight-quote blockquote {
        font-size: 1rem;
    }

    .fun-aside {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }

    .signal-card {
        padding: 0.875rem 1rem;
    }

    .signal-avatar {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .signal-emotion {
        font-size: 0.85rem;
    }

    .signal-message {
        font-size: 0.9rem;
    }

    .emotion-tally {
        gap: 0.4rem;
    }

    .tally-item {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
    }

    .cta-section {
        padding: 1.5rem 1.25rem;
    }

    .cta-section h3 {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-btn-primary {
        width: 100%;
        justify-content: center;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .blog-article {
        padding: 0 0.75rem;
    }

    .blog-title {
        font-size: 1.35rem;
    }

    .signal-header {
        gap: 0.6rem;
    }

    .signal-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .tally-item {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }

    .tally-item .tally-emoji {
        font-size: 0.85rem;
    }
}