/* ==========================================================================
   TEADOBEM - DESIGN SYSTEM & STYLING
   Theme: Premium Glassmorphism & Neon Dark Tech
   ========================================================================== */

:root {
    /* Paleta Relaxante e Sensorialmente Confortável (Foco em Autismo)
       Evita pretos puros e brancos puros, utilizando tons de azul-oceano e verde-folha
       que cientificamente reduzem a sobrecarga sensorial e o estresse visual. */
    --bg-dark: #0a0f1d;       /* Soft Midnight Navy (Evita fadiga ocular) */
    --bg-card: rgba(15, 23, 42, 0.65);
    --border-glass: rgba(255, 255, 255, 0.06);
    
    /* Cores Suaves & Naturais */
    --primary: #38bdf8;      /* Ocean Teal (Tranquilidade e Clareza) */
    --secondary: #52b788;    /* Sage Green (Natureza, Equilíbrio e Calma) */
    --accent: #74c69d;       /* Soft Mint Green */
    
    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-glow: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, rgba(82, 183, 136, 0.1) 50%, transparent 100%);
    
    /* Neutral Grays (Textos mais suaves para evitar contraste agressivo) */
    --text-primary: #e2e8f0;  /* Off-White suave */
    --text-muted: #94a3b8;
    --text-dark: #1e293b;
    --white: #f8fafc;
    
    /* Effects */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.12);
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.25);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   GLOWING BACKGROUND ELEMENTS
   ========================================================================== */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15; /* Suave para evitar fadiga sensorial */
    animation: floatBlob 20s infinite alternate ease-in-out; /* Movimento lento e terapêutico */
}

.blob-green {
    background: var(--secondary);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.blob-cyan {
    background: var(--primary);
    bottom: -150px;
    left: -150px;
    animation-delay: 3s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.15); }
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
header {
    background: rgba(7, 10, 19, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header-container {
    padding: 18px 24px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 1.1rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.4));
}

.logo-dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 15px var(--primary); }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    margin-top: 60px;
    margin-bottom: 80px;
    display: flex;
    align-items: center;
    gap: 60px;
    background: rgba(16, 22, 38, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-glow);
    pointer-events: none;
    z-index: 0;
}

.hero-text {
    flex: 1.2;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sparkle {
    display: inline-block;
    animation: spin 4s infinite linear;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.hero-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--white);
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.15));
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-brand);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.hero-image-wrapper {
    flex: 0.8;
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.hero-image-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    filter: blur(50px);
    z-index: -1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: floatImage 6s infinite ease-in-out alternate;
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

/* ==========================================================================
   BLOG SECTION & GRID
   ========================================================================== */
.blog-section {
    padding: 40px 0 100px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

/* Premium Article Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.card:hover::before {
    opacity: 1;
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(7, 10, 19, 0.8) 100%);
}

.card-body {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.35;
    transition: color 0.3s ease;
}

.card:hover .card-title {
    color: var(--primary);
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 18px;
    margin-top: auto;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* ==========================================================================
   SKELETON CARDS LOADING EFFECT
   ========================================================================== */
.skeleton-card {
    background: rgba(16, 22, 38, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.skeleton-img {
    height: 220px;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.skeleton-body {
    padding: 28px;
}

.skeleton-line {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.skeleton-tag {
    width: 80px;
    height: 24px;
    border-radius: 50px;
}

.skeleton-title {
    width: 90%;
    height: 28px;
    margin-bottom: 20px;
}

.skeleton-excerpt {
    width: 100%;
    height: 16px;
}

.skeleton-excerpt-short {
    width: 70%;
    height: 16px;
    margin-bottom: 30px;
}

.skeleton-footer {
    height: 20px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

/* Shimmer Animation for skeletons */
.skeleton-img::after,
.skeleton-line::after,
.skeleton-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.04) 50%, 
        transparent 100%
    );
    animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==========================================================================
   MODAL COMPONENT (Dynamic Post Reader)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 5, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: rgba(13, 19, 33, 0.95);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), var(--shadow-glow);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--white);
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gradient-brand);
    border-color: transparent;
    transform: rotate(90deg);
}

.modal-hero-img {
    height: 350px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-glass);
}

.modal-content {
    padding: 40px;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.modal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.modal-title-text {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 24px;
}

.modal-rich-text {
    color: rgba(243, 244, 246, 0.9);
    font-size: 1.05rem;
    line-height: 1.8;
}

.modal-rich-text p {
    margin-bottom: 20px;
}

.modal-rich-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: var(--white);
    margin: 30px 0 15px;
}

.modal-rich-text strong {
    color: var(--primary);
}

.modal-footer-info {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    margin-top: 40px;
}

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

.author-details {
    display: flex;
    flex-direction: column;
}

.author-details strong {
    color: var(--white);
}

.author-details span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   FOOTER COMPONENT
   ========================================================================== */
footer {
    background: rgba(5, 7, 12, 0.95);
    border-top: 1px solid var(--border-glass);
    padding: 80px 0 30px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 20px;
    margin-bottom: 24px;
    max-width: 360px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--white);
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

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

.footer-links h4,
.footer-newsletter h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-newsletter p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 12px 20px;
    color: var(--white);
    font-size: 0.9rem;
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-form button {
    background: var(--gradient-brand);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 0 24px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    transform: translateY(-1px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tech-stack-indicator {
    color: var(--primary);
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVIDADE (Mobile & Tablets)
   ========================================================================== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 24px;
        gap: 40px;
        margin-top: 30px;
    }
    
    .hero-text h1 {
        font-size: 2.6rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        width: 100%;
        max-width: 400px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        max-height: 95vh;
    }
    
    .modal-content {
        padding: 24px;
    }
    
    .modal-hero-img {
        height: 200px;
    }
    
    .modal-title-text {
        font-size: 1.7rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ==========================================================================
   BLOG CONTROLS - SEARCH & FILTERS
   ========================================================================== */
.blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    padding: 0 4px;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: var(--transition);
}

.search-container input {
    width: 100%;
    padding: 16px 48px 16px 52px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}

.search-container input:focus {
    outline: none;
    border-color: rgba(82, 183, 136, 0.5); /* Sage green highlight */
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 0 20px rgba(82, 183, 136, 0.1);
}

.search-container input:focus + .search-icon {
    color: var(--secondary); /* Pulse to Sage Green */
}

.search-clear {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: var(--transition);
}

.search-clear:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

/* Tabs Filter Capsule */
.filter-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 6px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    gap: 4px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
    color: var(--white);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(82, 183, 136, 0.15) 100%);
    border: 1px solid rgba(82, 183, 136, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.tab-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    transition: var(--transition);
}

.dot-recent { background-color: var(--primary); }
.dot-archive { background-color: var(--secondary); }
.dot-all { background-color: var(--accent); }

.tab-count {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    transition: var(--transition);
}

.tab-btn.active .tab-count {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

/* Archived badge in cards */
.card-archive-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(82, 183, 136, 0.1);
    border: 1px dashed rgba(82, 183, 136, 0.3);
    color: var(--secondary);
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Empty Search State container */
.empty-search-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin: 20px 0;
}

.empty-search-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    opacity: 0.7;
}

.empty-search-title {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.empty-search-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive Overrides for controls */
@media (max-width: 768px) {
    .blog-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .filter-tabs {
        justify-content: stretch;
    }
    
    .tab-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}
