﻿/* =============================================
   LIFE HIDDEN TRUTHS - BLOG STYLESHEET
   ============================================= */

/* 1. CSS VARIABLES & DESIGN TOKENS */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #a855f7;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --bg-dark: #0a0a0f;
    --bg-card: #13131a;
    --bg-surface: #1a1a25;
    --bg-elevated: #21212e;

    --text-primary: #f0f0f8;
    --text-secondary: #9999bb;
    --text-muted: #666688;

    --border-subtle: rgba(255,255,255,0.06);
    --border-glow: rgba(99,102,241,0.3);

    --gradient-primary: linear-gradient(135deg, #6366f1, #a855f7);
    --gradient-secondary: linear-gradient(135deg, #06b6d4, #6366f1);
    --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #13131a 50%, #1a0a2e 100%);

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 40px rgba(99,102,241,0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --nav-height: 64px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. RESET & BASE */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3. GRADIENT TEXT */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 4. NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(99,102,241,0.15);
    border-radius: 10px;
    border: 1px solid rgba(99,102,241,0.3);
    overflow: hidden;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.07);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(99,102,241,0.12);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-toggle:hover {
    background: rgba(255,255,255,0.07);
}

.toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--transition);
}

/* 5. HERO SECTION */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 60px) 20px 80px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 60% 60% at 70% 40%, rgba(168, 85, 247, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 30% 60%, rgba(99, 102, 241, 0.10) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.35);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #a5b4fc;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeSlideDown 0.6s ease;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    animation: fadeSlideUp 0.7s ease 0.1s both;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 40px;
    animation: fadeSlideUp 0.7s ease 0.2s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    animation: fadeSlideUp 0.7s ease 0.3s both;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* Hero Orbs */
.hero-visual { position: absolute; inset: 0; pointer-events: none; }

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(99,102,241,0.18), transparent);
    top: -100px; right: -50px;
    animation-delay: 0s;
}

.orb-2 {
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(168,85,247,0.15), transparent);
    bottom: -80px; left: -30px;
    animation-delay: -3s;
}

.orb-3 {
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(6,182,212,0.12), transparent);
    top: 30%; left: 10%;
    animation-delay: -6s;
}

/* 6. SECTION HEADERS */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--border-glow), transparent);
    border-radius: 2px;
}

/* 7. FEATURED SECTION */
.featured-section {
    padding: 70px 0;
}

.featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--border-glow);
}

.featured-image-wrapper {
    position: relative;
    overflow: hidden;
    height: clamp(300px, 30vw, 420px);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    min-height: 0;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-image {
    transform: scale(1.02);
}

.featured-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
}

.featured-badge {
    padding: 5px 12px;
    background: var(--gradient-primary);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.featured-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.card-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

.featured-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.featured-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 34px;
    height: 34px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.author-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.meta-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.meta-date, .meta-read {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--gradient-primary);
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 600;
    color: white;
    transition: var(--transition);
    width: fit-content;
    margin-top: 4px;
}

.read-more-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.45);
}

/* 8. POSTS SECTION */
.posts-section {
    padding: 20px 0 80px;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: rgba(99,102,241,0.4);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Post Card */
.post-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease both;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(99,102,241,0.12);
    border-color: rgba(99,102,241,0.25);
}

.post-card.hidden {
    display: none;
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: clamp(180px, 18vw, 230px);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

.post-card:hover .card-image {
    transform: scale(1.02);
}

.card-image-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
}

.card-tag {
    padding: 4px 12px;
    background: rgba(10,10,15,0.7);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid rgba(6,182,212,0.3);
}

.card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-primary);
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card:hover .card-title {
    color: #a5b4fc;
}

.card-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.author-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.author-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.card-meta-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* 9. LOAD MORE */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.load-more-btn {
    padding: 14px 40px;
    border-radius: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.load-more-btn:hover {
    background: rgba(99,102,241,0.1);
    box-shadow: 0 0 20px rgba(99,102,241,0.2);
}

.btn-loader {
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

/* 11. FOOTER */
.footer {
    padding: 60px 0 0;
    background: var(--bg-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 38px;
    height: 38px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-btn:hover {
    background: rgba(99,102,241,0.15);
    border-color: var(--border-glow);
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-links h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* 12. BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(99,102,241,0.5);
}

/* 13. SKELETON LOADING */
@keyframes shimmer {
    0% { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
    background-size: 1200px 100%;
    animation: shimmer 1.8s infinite;
    border-radius: var(--radius-sm);
}

/* 14. ANIMATIONS */
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 15. RESPONSIVE */
@media (max-width: 1024px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-list {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 4px;
        padding: 16px;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-subtle);
        transform: translateY(-110%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav-list.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        display: block;
        padding: 12px 16px;
        width: 100%;
    }

    .hero { min-height: 400px; padding: calc(var(--nav-height) + 40px) 20px 60px; }
    .hero-title { font-size: 2.2rem; }

    .featured-card { grid-template-columns: 1fr; }
    .featured-image-wrapper { height: clamp(220px, 58vw, 300px); }
    .featured-body { padding: 28px 24px; }
    .featured-title { font-size: 1.4rem; }

    .posts-grid { grid-template-columns: 1fr; }
    .card-image-wrapper { height: clamp(200px, 56vw, 280px); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-stats { gap: 16px; }
    .stat-number { font-size: 1.5rem; }
    .filter-bar { gap: 6px; }
    .filter-btn { padding: 7px 14px; font-size: 0.8rem; }
}

