/* Modern AI Chatbot Dashboard - Clean & Professional Design */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 0;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

/* Modern Header Design */
.header {
    text-align: center;
    margin: 0;
    padding: 4rem 2rem 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.header h1 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.025em;
    position: relative;
    z-index: 1;
}

.header-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.header-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.header-nav a {
    color: white;
    text-decoration: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Main Content Area */
.main-content {
    padding: 2rem;
    background: var(--bg-primary);
}

/* Modern Card Design */

/* Hero Section */
.hero-section {
    text-align: center;
    margin: 0;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    position: relative;
}

.hero-section h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.hero-section p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* Features Section */
.features {
    margin: 0;
    padding: 4rem 2rem;
    background: var(--bg-primary);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 0;
}

.feature-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

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

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Detailed Features */
.features-detailed {
    margin: 0;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
}

.features-detailed h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-category {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.feature-category:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-category h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.feature-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

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

.feature-category li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Widget Code Section */
.widget-code {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--text-primary);
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    margin: 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: 44px;
    font-family: inherit;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin: 0;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: inline-block;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-btn.primary {
    background: var(--success-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.cta-btn.primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Installation Section */
.installation-section {
    margin: 0;
    padding: 4rem 2rem;
    background: var(--bg-primary);
}

.installation-section h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 600;
}

/* Related Resources */
.related-resources {
    margin: 0;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-secondary);
}

.related-resources h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.resource-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.resource-link {
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.resource-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* SEO Content */
.seo-content {
    margin: 0;
    padding: 4rem 2rem;
    background: var(--bg-primary);
}

.seo-content h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.seo-content h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem 0;
    font-weight: 600;
}

.seo-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.seo-content ul {
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 1.5rem;
}

.seo-content li {
    margin-bottom: 0.75rem;
}

.seo-content li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Mobile Optimization */
.mobile-optimization {
    margin: 0;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 0;
    border: none;
}

.mobile-optimization h2 {
    color: #92400e;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 600;
}

.mobile-optimization p {
    color: #a16207;
    line-height: 1.6;
    font-size: 1.0625rem;
}

/* Simple Instructions Section */
.simple-instructions {
    padding: 4rem 0;
    background: var(--bg-secondary);
    margin: 2rem 0;
}

.simple-instructions h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
}

.simple-instructions > p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.code-example {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 2rem auto;
    max-width: 800px;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.code-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

.code-example pre {
    margin: 0;
    padding: 1.5rem;
    background: #1e293b;
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
}

.code-example code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.instructions-steps {
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.instructions-steps h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.instructions-steps ol {
    padding-left: 1.5rem;
}

.instructions-steps li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.instructions-steps strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive adjustments for code section */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        border-radius: var(--radius-lg);
    }
    
    .header {
        padding: 3rem 1.5rem 2rem;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .header-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-section,
    .features,
    .features-detailed,
    .cta-section,
    .installation-section,
    .related-resources,
    .seo-content,
    .mobile-optimization {
        padding: 3rem 1.5rem;
    }
    
    .hero-section h2,
    .features h2,
    .features-detailed h2,
    .cta-section h2,
    .related-resources h2,
    .seo-content h2 {
        font-size: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .resource-links {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
    }

    .code-example {
        margin: 1rem;
        border-radius: var(--radius-md);
    }
    
    .code-example pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .code-header {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .simple-instructions h2 {
        font-size: 2rem;
    }
    
    .simple-instructions > p {
        font-size: 1.1rem;
        margin: 0 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .header-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .header-nav a {
        width: 100%;
        text-align: center;
    }
    
    .widget-code {
        font-size: 0.75rem;
        padding: 1rem;
    }
    
    .hero-section h2,
    .features h2,
    .features-detailed h2,
    .cta-section h2,
    .related-resources h2,
    .seo-content h2 {
        font-size: 1.75rem;
    }
} 

/* Animation classes */
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

/* Initial state for animation */
.feature-card,
.code-example,
.instructions-steps {
    opacity: 0;
    transform: translateY(30px);
}

/* ================================
   Reduced spacing overrides (≈60%)
   ================================ */
/* Container */
.container {
    margin: 0.8rem auto;
}

/* Major sections */
.header {
    padding: 1.6rem 0.8rem 1.2rem;
}
.hero-section,
.features,
.features-detailed,
.installation-section,
.related-resources,
.seo-content,
.cta-section,
.mobile-optimization,
.simple-instructions {
    padding: 1.6rem 0.8rem;
}

/* Headings spacing */
.features h2,
.features-detailed h2,
.related-resources h2,
.seo-content h2,
.cta-section h2,
.simple-instructions h2 {
    margin-bottom: 1.2rem;
}

/* Grids and cards */
.feature-grid,
.features-grid {
    gap: 0.8rem;
}
.feature-card {
    padding: 1rem;
}
.feature-category {
    padding: 0.8rem;
}

/* Code/example blocks */
.widget-code {
    padding: 0.6rem;
    margin: 0.6rem 0;
}
.code-example {
    margin: 0.4rem auto;
}
.code-header {
    padding: 0.6rem 1rem;
}
.code-example pre {
    padding: 0.6rem;
}

/* Buttons and links */
.cta-buttons { gap: 0.8rem; }
.cta-btn { padding: 0.4rem 0.8rem; }
.resource-links { gap: 0.8rem; }
.resource-link { padding: 0.4rem 0.8rem; }
.copy-btn { padding: 0.35rem 0.7rem; }

/* Instruction steps */
.instructions-steps {
    margin: 1.2rem auto 0;
    padding: 0.8rem;
}
.instructions-steps ol { padding-left: 0.6rem; }
.instructions-steps li { margin-bottom: 0.4rem; }

/* ================================
   Footer Styles
   ================================ */
.site-footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    margin-top: 4rem;
    padding: 3rem 0 0;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #f8fafc;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 1px;
}

.footer-section p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
    color: #cbd5e1;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #3b82f6;
    transform: translateX(5px);
}

.footer-bottom {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.1);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #94a3b8;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #3b82f6;
}

/* Footer responsive design */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        margin-top: 2rem;
        padding: 2rem 0 0;
    }
    
    .footer-container {
        gap: 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
}

/* ================================
   Blog Styles
   ================================ */
.blog-filters {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.filters-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-form {
    margin-bottom: 1.5rem;
}

.search-input-group {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.search-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.category-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

/* Blog Image and Content Styles */
.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.blog-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.blog-read-time {
    color: var(--text-muted);
}

.blog-content h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.blog-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.blog-author {
    color: var(--text-secondary);
    font-weight: 500;
}

.blog-date {
    color: var(--text-muted);
    font-style: italic;
}

/* Main Blog Grid */
.blog-grid-section {
    margin-bottom: 3rem;
}

.blog-grid-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.blog-card .blog-image {
    height: 180px;
}

.blog-card .blog-content {
    padding: 1.25rem;
}

.blog-card .blog-content h3 {
    font-size: 1.1rem;
}

.blog-card .blog-content p {
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.page-dots {
    padding: 0.5rem;
    color: var(--text-muted);
}

/* Blog Post Page */
.breadcrumb {
    background: var(--bg-secondary);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

.current-page {
    color: var(--text-muted);
}

.blog-post {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.post-read-time,
.post-views {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.post-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.post-excerpt {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.post-author {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

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

.post-content {
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.post-content code {
    background: var(--bg-secondary);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

.post-tags {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.post-tags h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tag-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--border-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

/* Social Sharing */
.social-sharing {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    text-align: center;
}

.social-sharing h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.facebook {
    background: #4267b2;
    color: white;
}

.share-btn.copy {
    background: var(--secondary-color);
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Recent Articles */
.recent-articles {
    margin: 3rem 0;
}

.recent-articles h2 {
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.recent-blog-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.recent-blog-card:hover {
    transform: translateY(-2px);
}

.recent-blog-card h3 {
    margin-bottom: 0.5rem;
}

.recent-blog-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-blog-card h3 a:hover {
    color: var(--primary-color);
}

.back-to-blog {
    text-align: center;
    margin: 3rem 0;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.no-results h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Blog Responsive Design */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .blog-filters {
        padding: 1rem;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ================================
   Legal Pages Styles (Privacy, Terms, Cookies)
   ================================ */
.privacy-content,
.terms-content,
.cookies-content {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    line-height: 1.7;
}

.content-wrapper h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0.5rem;
}

.content-wrapper h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.content-wrapper h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}

.content-wrapper p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.content-wrapper ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.content-wrapper strong {
    color: var(--text-primary);
    font-weight: 600;
}

.content-wrapper a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-wrapper a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.back-to-home {
    text-align: center;
    margin: 3rem 0 1rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.cookie-preferences {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    border: 1px solid var(--border-light);
}

.cookie-preferences h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

.cookie-buttons .cta-btn {
    min-width: 150px;
}

/* Legal pages responsive design */
@media (max-width: 768px) {
    .privacy-content,
    .terms-content,
    .cookies-content {
        padding: 1rem;
    }
    
    .content-wrapper {
        padding: 1.5rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.75rem;
    }
    
    .content-wrapper h3 {
        font-size: 1.25rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cookie-buttons .cta-btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 1rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .content-wrapper h3 {
        font-size: 1.1rem;
    }
} 