/*
Theme Name: SarvHost Blog
Theme URI: https://sarvhost.net
Author: SarvHost
Author URI: https://sarvhost.net
Description: Custom theme for SarvHost Blog - Light theme matching main website
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: sarvhost-blog
*/

/* ============================================
   CSS Variables - Light Theme (Match Main Site)
============================================ */
:root {
    /* Primary Colors */
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --secondary: #EC4899;
    --accent: #06B6D4;
    
    /* Light Theme Colors */
    --bg-body: #F8FAFC;
    --bg-white: #FFFFFF;
    --bg-light: #F1F5F9;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8FAFC;
    
    /* Text Colors */
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-light: #CBD5E1;
    
    /* Border Colors */
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    
    /* Header/Footer Dark */
    --header-bg: #0F172A;
    --footer-bg: #0F172A;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366F1 0%, #EC4899 50%, #06B6D4 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
    --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.08);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --header-height: 80px;
}

/* ============================================
   Reset & Base Styles
============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ============================================
   Container
============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 800px;
}

/* ============================================
   Header (Dark - Like Main Site)
============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.current {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
    background: var(--gradient-primary) !important;
    color: white !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    box-shadow: var(--shadow-glow);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: #FFFFFF;
    transition: all var(--transition-fast);
}

/* ============================================
   Hero Section (Blog Header)
============================================ */
.blog-hero {
    padding: 140px 0 60px;
    background: var(--gradient-hero);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    color: #FFFFFF;
}

.blog-hero .gradient-text {
    background: linear-gradient(135deg, #FFFFFF 0%, #E0E7FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* ============================================
   Main Content Area
============================================ */
.site-main {
    padding: 60px 0;
    min-height: 60vh;
    background: var(--bg-body);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* ============================================
   Blog Posts Grid
============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ============================================
   Post Card (Light Theme)
============================================ */
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-card);
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.post-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-thumbnail .category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-meta i {
    color: var(--primary);
    margin-right: 5px;
}

.post-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-primary);
}

.post-title a:hover {
    color: var(--primary);
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.read-more:hover {
    color: var(--primary-dark);
    gap: 12px;
}

/* ============================================
   Sidebar (Light Theme)
============================================ */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-card);
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.widget-title i {
    color: var(--primary);
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-form input[type="search"]::placeholder {
    color: var(--text-muted);
}

.search-form button {
    padding: 12px 18px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-form button:hover {
    transform: scale(1.05);
}

/* Categories Widget */
.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 10px;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.categories-list a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.categories-list .count {
    background: var(--bg-card);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.categories-list a:hover .count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.recent-post-thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.recent-post-info h4 a {
    color: var(--text-primary);
}

.recent-post-info h4 a:hover {
    color: var(--primary);
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-cloud a {
    padding: 6px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.tags-cloud a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* CTA Widget */
.widget-cta {
    background: var(--gradient-primary);
    text-align: center;
    padding: 30px;
    border: none;
}

.widget-cta h3 {
    color: white;
    margin-bottom: 10px;
}

.widget-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.widget-cta .btn {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: var(--primary-dark);
    font-weight: 700;
    border-radius: 50px;
    transition: all var(--transition-fast);
}

.widget-cta .btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Single Post (Light Theme)
============================================ */
.single-post-header {
    padding: 140px 0 40px;
    background: var(--gradient-hero);
    text-align: center;
}

.single-post-header .category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.single-post-header h1 {
    font-size: 2.8rem;
    max-width: 900px;
    margin: 0 auto 20px;
    color: white;
}

.single-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    color: rgba(255, 255, 255, 0.9);
    flex-wrap: wrap;
}

.single-post-meta i {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 8px;
}

.post-featured-image {
    margin: -60px auto 40px;
    max-width: 900px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.post-featured-image img {
    width: 100%;
}

/* Post Content */
.post-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 50px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.post-body h2 {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
}

.post-body h3 {
    margin-top: 30px;
    color: var(--text-primary);
}

.post-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.post-body ul, .post-body ol {
    margin: 20px 0;
    padding-left: 30px;
    color: var(--text-secondary);
}

.post-body li {
    margin-bottom: 10px;
}

.post-body blockquote {
    margin: 30px 0;
    padding: 25px 30px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.post-body pre {
    background: var(--header-bg);
    color: #E2E8F0;
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 20px 0;
}

.post-body code {
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.post-body pre code {
    background: transparent;
    color: #E2E8F0;
}

.post-body img {
    border-radius: var(--radius-md);
    margin: 30px 0;
    box-shadow: var(--shadow-md);
}

.post-body a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(99, 102, 241, 0.3);
}

.post-body a:hover {
    text-decoration-color: var(--primary);
}

/* Post Tags */
.post-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.post-tags span {
    color: var(--text-muted);
    font-weight: 600;
}

.post-tags a {
    padding: 6px 14px;
    background: var(--bg-light);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.post-tags a:hover {
    background: var(--primary);
    color: white;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 25px;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 40px 0;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.author-info .author-title {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.author-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.nav-previous, .nav-next {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.nav-previous:hover, .nav-next:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.nav-next {
    text-align: right;
}

.nav-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 600;
    color: var(--text-primary);
}

/* Related Posts */
.related-posts {
    margin: 60px 0;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ============================================
   Comments (Light Theme)
============================================ */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    margin-bottom: 30px;
    color: var(--text-primary);
}

.comment-list {
    list-style: none;
}

.comment {
    margin-bottom: 30px;
}

.comment-body {
    display: flex;
    gap: 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px;
}

.comment-author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.comment-author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-text {
    color: var(--text-secondary);
    line-height: 1.7;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--primary);
}

/* Comment Form */
.comment-respond {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-top: 40px;
    box-shadow: var(--shadow-card);
}

.comment-respond h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    margin-bottom: 15px;
    transition: border-color var(--transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .submit {
    padding: 14px 35px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   Pagination
============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .current {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

/* ============================================
   Footer (Dark - Like Main Site)
============================================ */
.site-footer {
    background: var(--footer-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.footer-logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--primary-light);
}

/* ============================================
   404 Page
============================================ */
.error-404 {
    text-align: center;
    padding: 150px 20px;
    background: var(--bg-body);
}

.error-404 h1 {
    font-size: 8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.error-404 h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.error-404 p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
}

.error-404 .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-fast);
}

.error-404 .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   No Posts Found
============================================ */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.no-posts h2 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.no-posts p {
    color: var(--text-secondary);
}

/* ============================================
   Responsive Design
============================================ */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--header-bg);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .single-post-header h1 {
        font-size: 1.8rem;
    }
    
    .post-body {
        padding: 30px 20px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    
    .post-card {
        border-radius: var(--radius-md);
    }
    
    .widget {
        padding: 20px;
    }
    
    .error-404 h1 {
        font-size: 5rem;
    }
}

/* ============================================
   Utility Classes
============================================ */
.text-center { text-align: center; }
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* ============================================
   Print Styles
============================================ */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .post-navigation,
    .related-posts,
    .comments-area {
        display: none;
    }
    
    .post-body {
        max-width: 100%;
        padding: 0;
        box-shadow: none;
        border: none;
    }
    
    body {
        background: white;
        color: black;
    }
}