/* ===================================
   MODERN BLOG STYLES - RIO DIJITAL
   Enhanced Design & Performance
   =================================== */

/* CSS Variables - Consistent with webmaster-tools.css */
:root {
    /* Google Brand Colors */
    --google-blue: #4285f4;
    --google-red: #ea4335;
    --google-yellow: #fbbc04;
    --google-green: #34a853;
    
    /* Primary Colors */
    --primary: #1a73e8;
    --primary-light: #669df6;
    --primary-dark: #1a73e8;
    --secondary: #ea4335;
    --accent: #fbbc04;
    --success: #34a853;
    --warning: #ff9500;
    --purple: #9c27b0;
    --indigo: #3f51b5;
    --teal: #009688;
    --pink: #e91e63;
    
    /* Neutral Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f4;
    --bg-accent: #e8eaed;
    --bg-blue-light: #e8f0fe;
    --bg-success-light: #e6f4ea;
    --bg-warning-light: #fef7e0;
    --bg-error-light: #fce8e6;
    
    /* Text Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #5f6368;
    --text-tertiary: #80868b;
    --text-muted: #9aa0a6;
    --text-white: #ffffff;
    --text-light: #e8eaed;
    
    /* Borders & Effects */
    --border-light: #e8eaed;
    --border-medium: #dadce0;
    --border-dark: #5f6368;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(60, 64, 67, 0.08);
    --shadow-sm: 0 1px 3px rgba(60, 64, 67, 0.12);
    --shadow-md: 0 4px 8px rgba(60, 64, 67, 0.12);
    --shadow-lg: 0 8px 16px rgba(60, 64, 67, 0.15);
    --shadow-xl: 0 16px 32px rgba(60, 64, 67, 0.15);
    --shadow-2xl: 0 24px 48px rgba(60, 64, 67, 0.18);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.35s ease;
    
    /* Font Families */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-headings: 'Google Sans', 'Inter', sans-serif;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.blog-main {
    background-color: var(--bg-secondary);
    font-family: var(--font-main);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ===================================
   BLOG HERO SECTION
   =================================== */
.blog-hero {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-blue-light));
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::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(66,133,244,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-primary);
    color: var(--primary);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
}

.hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-title {
    font-family: var(--font-headings);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    min-width: 160px;
    justify-content: center;
}

.cta-primary {
    background: var(--primary);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--primary-dark);
}

.cta-secondary {
    background: var(--bg-primary);
    color: var(--primary);
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-xs);
}

.cta-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    background: var(--bg-blue-light);
}

/* Hero Background Shapes */
.hero-background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(66, 133, 244, 0.08);
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    background: rgba(52, 168, 83, 0.08);
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
    background: rgba(251, 188, 5, 0.08);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(-10px) rotate(240deg); }
}

/* ===================================
   BLOG CONTENT AREA
   =================================== */
.blog-content-area {
    padding: 80px 0;
}

/* ===================================
   FILTERS AND SEARCH
   =================================== */
.blog-filters {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border: 1px solid var(--border-light);
}

.categories-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: var(--transition-normal);
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover {
    background: var(--bg-blue-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xs);
}

.category-btn.active {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.category-btn.active:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.search-and-sort {
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-box, .sort-options {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}

.search-box i, .sort-options i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    z-index: 2;
    transition: var(--transition-fast);
}

#blog-search, #sort-posts {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: var(--font-main);
    background: var(--bg-primary);
    transition: var(--transition-normal);
    outline: none;
}

#blog-search:focus, #sort-posts:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.1);
}

#blog-search:focus + i, #sort-posts:focus + i {
    color: var(--primary);
}

#sort-posts {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* ===================================
   POSTS SECTIONS
   =================================== */
.posts-section {
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-headings);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 1px;
}

.section-title i {
    color: var(--primary);
    font-size: 0.8em;
}

/* ===================================
   BLOG GRID & CARDS
   =================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.blog-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    border: 1px solid var(--border-light);
    cursor: pointer;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-medium);
}

.blog-card.featured {
    border: 2px solid var(--primary);
    position: relative;
}

.blog-card.featured::after {
    content: '⭐ Öne Çıkan';
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 3;
}

/* Card Image */
.blog-card-image, .card-image-container {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-image, .blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.blog-card:hover .card-image,
.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.card-category-badge, .blog-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-xs);
}

/* Category Badge Colors */
.blog-category-badge.google-ads {
    background: linear-gradient(135deg, #4285F4, #1a73e8);
}

.blog-category-badge.meta-ads {
    background: linear-gradient(135deg, #1877f2, #e91e63);
}

.blog-category-badge.seo {
    background: linear-gradient(135deg, #34A853, #137333);
}

.blog-category-badge.social-media {
    background: linear-gradient(135deg, #833ab4, #fd1d1d);
}

.blog-category-badge.analytics {
    background: linear-gradient(135deg, #FBBC05, #f9ab00);
    color: var(--blog-text-dark);
}

.blog-category-badge.tips {
    background: linear-gradient(135deg, #8c7ae6, #9c88ff);
}

/* Card Content */
.card-content, .blog-card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta, .blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.card-meta-item, .blog-date, .blog-read-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-title, .blog-card-title {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
    transition: var(--transition-fast);
}

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

.card-excerpt, .blog-card-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.card-author, .blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.author-info, .blog-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar, .blog-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-light);
    transition: var(--transition-fast);
}

.blog-card:hover .author-avatar,
.blog-card:hover .blog-author-avatar {
    border-color: var(--primary);
    transform: scale(1.05);
}

.author-avatar img, .blog-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info .name, .blog-author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 2px;
}

.author-info .title, .blog-author-title {
    font-size: 12px;
    color: var(--text-muted);
}

.blog-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.blog-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.blog-stat:hover {
    color: var(--primary);
}

/* ===================================
   LOADING STATES
   =================================== */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-container p {
    color: var(--text-muted);
    font-size: 16px;
    margin: 0;
}

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

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===================================
   NO RESULTS & LOAD MORE
   =================================== */
.no-results-message, .no-results {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    border: 2px dashed var(--border-medium);
    margin: 40px 0;
}

.no-results-message i, .no-results i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-results-message h3, .no-results h3 {
    font-family: var(--font-headings);
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.no-results-message p, .no-results p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.load-more-container {
    text-align: center;
    margin-top: 50px;
}

#load-more-btn {
    background: var(--bg-primary);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
}

#load-more-btn:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

#load-more-btn:active {
    transform: translateY(-1px);
}

#load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

#load-more-btn .fa-sync-alt {
    transition: var(--transition-fast);
}

#load-more-btn.loading .fa-sync-alt {
    animation: spin 1s linear infinite;
}

/* ===================================
   WHATSAPP FLOAT BUTTON
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(60, 64, 67, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    animation: none;
    color: var(--text-white);
}

.whatsapp-float:focus {
    outline: 3px solid rgba(37, 211, 102, 0.3);
    outline-offset: 2px;
}

/* ===================================
   FONT LOADING & OPTIMIZATION
   =================================== */
/* Font Loading States */
.fonts-loading {
    visibility: hidden;
}

.fonts-loaded {
    visibility: visible;
}

/* Font Preload Optimization */
.blog-main {
    font-display: swap;
}

/* ===================================
   SMOOTH SCROLLING & UTILITIES
   =================================== */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Text Selection */
::selection {
    background: rgba(66, 133, 244, 0.2);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(66, 133, 244, 0.2);
    color: var(--text-primary);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===================================
   NOTIFICATION SYSTEM
   =================================== */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    transform: translateX(100%);
    transition: var(--transition-normal);
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid var(--success);
}

.notification.error {
    border-left: 4px solid var(--secondary);
}

.notification.info {
    border-left: 4px solid var(--primary);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-icon {
    font-size: 1.2rem;
}

.notification.success .notification-icon {
    color: var(--success);
}

.notification.error .notification-icon {
    color: var(--secondary);
}

.notification.info .notification-icon {
    color: var(--primary);
}

.notification-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===================================
   LOADING OVERLAY
   =================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-overlay .loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary);
}

/* ===================================
   ANIMATIONS & TRANSITIONS
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-slow);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
    }
    
    .blog-filters {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 80px 0 60px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-primary, .cta-secondary {
        width: 100%;
        max-width: 280px;
    }
    
    .blog-content-area {
        padding: 60px 0;
    }
    
    .blog-filters {
        padding: 20px;
        gap: 20px;
    }
    
    .categories-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .categories-nav::-webkit-scrollbar {
        height: 4px;
    }
    
    .categories-nav::-webkit-scrollbar-track {
        background: var(--bg-secondary);
        border-radius: 2px;
    }
    
    .categories-nav::-webkit-scrollbar-thumb {
        background: var(--border-medium);
        border-radius: 2px;
    }
    
    .search-and-sort {
        flex-direction: column;
        gap: 16px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }
    
    .card-content, .blog-card-content {
        padding: 20px;
    }
    
    .card-author, .blog-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .blog-stats {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .blog-hero {
        padding: 60px 0 40px;
    }
    
    .hero-badge {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .blog-filters {
        padding: 16px;
        margin-bottom: 40px;
    }
    
    .category-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    #blog-search, #sort-posts {
        padding: 14px 16px 14px 44px;
        font-size: 15px;
    }
    
    .card-image-container, .blog-card-image {
        height: 180px;
    }
    
    .card-content, .blog-card-content {
        padding: 16px;
    }
    
    .card-title, .blog-card-title {
        font-size: 1.1rem;
    }
    
    .card-excerpt, .blog-card-excerpt {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    
    .no-results-message, .no-results {
        padding: 40px 20px;
    }
    
    .no-results-message h3, .no-results h3 {
        font-size: 20px;
    }
    
    #load-more-btn {
        padding: 14px 28px;
        font-size: 15px;
        min-width: 180px;
    }
}

/* ===================================
   ACCESSIBILITY IMPROVEMENTS
   =================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .shape {
        animation: none;
    }
    
    .loading-spinner {
        animation: none;
        border: 4px solid var(--border-light);
    }
}

/* Focus Styles */
.category-btn:focus,
#blog-search:focus,
#sort-posts:focus,
#load-more-btn:focus,
.cta-primary:focus,
.cta-secondary:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.blog-card:focus {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-light: #000000;
        --text-secondary: #000000;
        --shadow-sm: 0 4px 8px rgba(0,0,0,0.3);
    }
    
    .blog-card {
        border: 2px solid var(--border-light);
    }
    
    .category-btn {
        border: 2px solid var(--border-light);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --blog-bg-light: #121212;
        --blog-bg-white: #1e1e1e;
        --blog-bg-dark: #000000;
        --blog-text-dark: #ffffff;
        --blog-text-light: #e0e0e0;
        --blog-text-muted: #9aa0a6;
        --blog-border-color: #333333;
        --blog-border-light: #2a2a2a;
        --blog-shadow: 0 4px 8px rgba(0,0,0,0.3);
        --blog-shadow-hover: 0 8px 16px rgba(0,0,0,0.4);
        --blog-shadow-strong: 0 12px 24px rgba(0,0,0,0.5);
    }
    
    .blog-hero {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
    
    .hero-badge {
        background: var(--blog-bg-white);
        border-color: var(--blog-border-color);
    }
    
    .blog-card {
        background: var(--blog-bg-white);
        border-color: var(--blog-border-color);
    }
    
    .blog-card:hover {
        box-shadow: var(--blog-shadow-strong);
    }
    
    .category-btn {
        background: var(--blog-bg-white);
        border-color: var(--blog-border-color);
    }
    
    .category-btn:hover {
        background: #2a2a2a;
    }
    
    #blog-search, #sort-posts {
        background: var(--blog-bg-white);
        border-color: var(--blog-border-color);
        color: var(--blog-text-dark);
    }
    
    .loading-spinner {
        border-color: var(--blog-border-color);
        border-top-color: var(--blog-primary);
    }
}

/* ===================================
   BLOG POST DETAIL STYLES
   =================================== */

/* Blog Post Article */
.blog-post-article {
    background: var(--bg-primary);
    padding: 2rem 0 4rem;
    margin-top: 80px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-normal);
}

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

.breadcrumb i {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

/* Post Header */
.post-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.post-category {
    background: var(--primary);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.post-date, .post-read-time {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-date::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.post-read-time::before {
    content: '\f02d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.post-title {
    font-family: var(--font-headings);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.post-excerpt {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.post-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-light);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    text-align: left;
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-title {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Post Image */
.post-image-container {
    margin-bottom: 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.post-featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* Post Content */
.post-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

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

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content h4 {
    font-size: 1.25rem;
}

.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 {
    background: var(--bg-blue-light);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: var(--radius-md);
    font-style: italic;
    color: var(--text-secondary);
}

.post-content code {
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary);
}

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

.post-content pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
    transition: var(--transition-fast);
}

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

/* Post Tags */
.post-tags {
    margin-bottom: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.post-tags h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

.tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition-normal);
    border: 1px solid var(--border-light);
}

.tag:hover {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

/* Social Share */
.social-share {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    text-align: center;
}

.social-share h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

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

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

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

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

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.copy-link {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
}

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

/* Related Posts */
.related-posts {
    background: var(--bg-secondary);
    padding: 4rem 0;
}

.related-posts .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

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

/* Comments Section */
.comments-section {
    background: var(--bg-primary);
    padding: 4rem 0;
}

.comments-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.comment-form-wrapper {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
}

.comment-form-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-main);
    background: var(--bg-primary);
    transition: var(--transition-normal);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.submit-btn {
    background: var(--primary);
    color: var(--text-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Comments List */
.comments-list {
    max-width: 800px;
    margin: 0 auto;
}

.comment {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: 600;
}

.comment-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

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

.comment-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Blog Post CTA */
.blog-post-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-white);
    padding: 4rem 0;
    text-align: center;
}

.blog-post-cta .cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-post-cta .cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-post-cta .btn-primary,
.blog-post-cta .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.blog-post-cta .btn-primary {
    background: var(--text-white);
    color: var(--primary);
}

.blog-post-cta .btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.blog-post-cta .btn-primary:hover,
.blog-post-cta .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Responsive Design for Blog Post */
@media (max-width: 768px) {
    .blog-post-article {
        padding: 1rem 0 2rem;
    }
    
    .post-header {
        margin-bottom: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-excerpt {
        font-size: 1.1rem;
    }
    
    .post-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-info {
        text-align: center;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .blog-post-cta .btn-primary,
    .blog-post-cta .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-content h3 {
        font-size: 1.25rem;
    }
    
    .social-share,
    .comment-form-wrapper {
        padding: 1.5rem;
    }
    
    .blog-post-cta .cta-content h2 {
        font-size: 2rem;
    }
    
    .blog-post-cta .cta-content p {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    .blog-filters,
    .hero-cta,
    .load-more-container,
    .hero-background-shapes {
        display: none !important;
    }
    
    .blog-hero {
        padding: 40px 0;
        background: white !important;
    }
    
    .blog-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        margin-bottom: 20px;
    }
    
    .blog-card:hover {
        transform: none !important;
    }
    
    .hero-title {
        color: black !important;
        font-size: 2rem !important;
    }
    
    .section-title {
        color: black !important;
        font-size: 1.5rem !important;
    }
    
    .social-share,
    .comments-section,
    .blog-post-cta {
        display: none !important;
    }
}
