/*
Theme Name: DAVINCI Forum
Theme URI: https://davinci-rechenzentrum.de
Author: DAVINCI Rechenzentrum GmbH
Author URI: https://davinci-rechenzentrum.de
Description: Modern IT Forum Theme for DAVINCI IT Content Engine - German IT Community Style
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: davinci-forum
Tags: forum, it-community, responsive, modern
*/

/* =============================================================================
   CSS Variables & Design System
   ============================================================================= */
:root {
    /* Primary Colors - Professional Blue Theme */
    --primary: #0078d4;
    --primary-dark: #005a9e;
    --primary-light: #4da6ff;
    --primary-gradient: linear-gradient(135deg, #0078d4 0%, #00a4ef 100%);
    
    /* Secondary Colors */
    --secondary: #00b4d8;
    --accent: #00d4aa;
    --accent-warm: #ff6b35;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Typography */
    --font-display: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Layout */
    --max-width: 1400px;
    --sidebar-width: 280px;
    --header-height: 64px;
}

/* =============================================================================
   Reset & Base Styles
   ============================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

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

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

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}

/* =============================================================================
   Typography
   ============================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
}

/* =============================================================================
   Layout Utilities
   ============================================================================= */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* =============================================================================
   Header & Navigation
   ============================================================================= */
.site-header {
    background: var(--primary-gradient);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 var(--space-lg);
    max-width: var(--max-width);
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-logo svg {
    width: 36px;
    height: 36px;
}

.site-logo:hover {
    color: var(--white);
    opacity: 0.9;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.main-nav a {
    color: rgba(255, 255, 255, 0.9);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header-search {
    position: relative;
}

.header-search input {
    width: 240px;
    padding: var(--space-sm) var(--space-md);
    padding-left: 40px;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header-search input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    width: 300px;
}

.header-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.btn-login {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--white);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.btn-login:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    padding: var(--space-sm);
    color: var(--white);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* =============================================================================
   Main Layout - Two Column
   ============================================================================= */
.site-main {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: var(--space-xl);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
    min-height: calc(100vh - var(--header-height));
}

/* =============================================================================
   Sidebar
   ============================================================================= */
.sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
    height: fit-content;
}

.sidebar-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--gray-200);
}

/* Sidebar Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--gray-700);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.sidebar-nav a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.sidebar-nav a.active {
    background: var(--primary);
    color: var(--white);
}

.sidebar-nav a svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.sidebar-nav a.active svg {
    opacity: 1;
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    color: var(--gray-700);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-100);
    transition: color var(--transition-fast);
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    color: var(--primary);
}

.category-count {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* =============================================================================
   Featured Slider
   ============================================================================= */
.featured-slider {
    margin-bottom: var(--space-2xl);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.featured-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--gray-800);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity var(--transition-base), transform var(--transition-slow);
}

.featured-card:hover img {
    opacity: 0.6;
    transform: scale(1.05);
}

.featured-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.featured-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.badge-question {
    background: var(--info);
    color: var(--white);
}

.badge-instruction {
    background: var(--success);
    color: var(--white);
}

.badge-discussion {
    background: var(--warning);
    color: var(--gray-900);
}

.badge-showcase {
    background: var(--accent-warm);
    color: var(--white);
}

.featured-card h3 {
    color: var(--white);
    font-size: 1.125rem;
    line-height: 1.4;
    margin: 0;
}

/* =============================================================================
   Article List
   ============================================================================= */
.content-area {
    flex: 1;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.section-title {
    font-size: 1.5rem;
    color: var(--gray-900);
}

.section-actions {
    display: flex;
    gap: var(--space-sm);
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Article Cards */
.article-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.article-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-200);
    transform: translateX(4px);
}

.article-thumbnail {
    width: 140px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-200);
    flex-shrink: 0;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.article-card:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.article-author {
    font-weight: 600;
    color: var(--primary);
}

.article-category {
    display: inline-flex;
    padding: 2px 8px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--gray-600);
}

.article-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
    transition: color var(--transition-fast);
}

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

.article-excerpt {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.article-stats {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.article-stat {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.article-stat svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* =============================================================================
   CTA Banner
   ============================================================================= */
.cta-banner {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    margin: var(--space-2xl) 0;
    color: var(--white);
}

.cta-banner h2 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.cta-banner p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--space-lg);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--white);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.btn-cta:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* =============================================================================
   AI Expert System Widget
   ============================================================================= */
.ai-widget {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    color: var(--white);
    text-align: center;
}

.ai-widget-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-widget-icon svg {
    width: 32px;
    height: 32px;
}

.ai-widget h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.ai-widget p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: var(--space-lg);
}

.ai-input-wrapper {
    position: relative;
}

.ai-input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    padding-right: 50px;
    border: 2px solid var(--gray-700);
    border-radius: var(--radius-full);
    background: var(--gray-800);
    color: var(--white);
    font-size: 0.9375rem;
    transition: border-color var(--transition-fast);
}

.ai-input::placeholder {
    color: var(--gray-500);
}

.ai-input:focus {
    outline: none;
    border-color: var(--primary);
}

.ai-submit {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background var(--transition-fast);
}

.ai-submit:hover {
    background: var(--primary-light);
}

.ai-submit svg {
    width: 18px;
    height: 18px;
}

/* =============================================================================
   Footer
   ============================================================================= */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: var(--space-3xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-2xl);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .site-logo {
    margin-bottom: var(--space-md);
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-title {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.footer-copyright {
    font-size: 0.8125rem;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border-radius: 50%;
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

/* =============================================================================
   Pagination
   ============================================================================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-sm);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination a {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

/* =============================================================================
   Responsive Design
   ============================================================================= */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-card:last-child {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }
    
    .site-main {
        grid-template-columns: 1fr;
        padding: var(--space-lg);
    }
    
    .sidebar {
        position: static;
        order: -1;
    }
    
    .sidebar-section {
        display: none;
    }
    
    .sidebar-section:first-child {
        display: block;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-search {
        display: none;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-card:last-child {
        display: block;
    }
    
    .article-card {
        grid-template-columns: 1fr;
    }
    
    .article-thumbnail {
        width: 100%;
        height: 160px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .header-inner {
        padding: 0 var(--space-md);
    }
    
    .site-logo {
        font-size: 1.25rem;
    }
    
    .btn-login span {
        display: none;
    }
    
    .article-stats {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .section-header {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }
    
    .cta-banner {
        padding: var(--space-xl);
    }
    
    .cta-banner h2 {
        font-size: 1.5rem;
    }
}

/* =============================================================================
   Mobile Menu (Slide-in)
   ============================================================================= */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    transition: left var(--transition-base);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
}

.mobile-menu-close {
    padding: var(--space-sm);
    color: var(--gray-600);
}

.mobile-menu-nav {
    padding: var(--space-lg);
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    color: var(--gray-700);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-menu-nav a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

/* =============================================================================
   Loading & Animation States
   ============================================================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

.article-card {
    animation: fadeIn 0.4s ease-out;
    animation-fill-mode: both;
}

.article-card:nth-child(1) { animation-delay: 0.05s; }
.article-card:nth-child(2) { animation-delay: 0.1s; }
.article-card:nth-child(3) { animation-delay: 0.15s; }
.article-card:nth-child(4) { animation-delay: 0.2s; }
.article-card:nth-child(5) { animation-delay: 0.25s; }

/* =============================================================================
   WordPress Specific Overrides
   ============================================================================= */
.wp-block-image img {
    border-radius: var(--radius-md);
}

.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.entry-content p {
    margin-bottom: var(--space-lg);
}

.entry-content ul,
.entry-content ol {
    margin: var(--space-lg) 0;
    padding-left: var(--space-xl);
}

.entry-content li {
    margin-bottom: var(--space-sm);
}

.entry-content code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.875em;
}

.entry-content pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: var(--space-lg) 0;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

/* =============================================================================
   Traffic Light Status Indicator
   ============================================================================= */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-yellow {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status-green .status-dot { background: var(--success); }
.status-yellow .status-dot { background: var(--warning); }
.status-red .status-dot { background: var(--error); }

/* Ask Question Button */
.btn-ask-question {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #00d4aa;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.15s ease;
}
.btn-ask-question:hover {
    background: #00b894;
    color: white;
    transform: translateY(-1px);
}
.btn-ask-question svg {
    width: 18px;
    height: 18px;
}
