/* Easy Blog Theme - Optimized CSS */
/* Version: 2.0.0 | Author: CMSPeak */
/* Performance optimized with better contrast */

/* ============================================
   CSS Variables - Improved Contrast
   ============================================ */
:root {
    /* Primary Colors - Deeper blue for better contrast */
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --primary-light: #dbeafe;
    --primary-dark: #1e3a8a;

    /* Secondary & Accent */
    --secondary: #475569;
    --accent: #f59e0b;
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --info: #0284c7;

    /* Background - Subtle warm tones */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-footer: #0f172a;
    --bg-hover: #f1f5f9;

    /* Text - Better contrast ratios */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --text-inverse: #ffffff;

    /* Border */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: #cbd5e1;

    /* Shadow - Softer shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Spacing */
    --sidebar-width: 320px;
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography - Better Readability
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 0.5em;
    letter-spacing: -0.025em;
}

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

p {
    margin-bottom: 1.25em;
    color: var(--text-secondary);
}

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

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

/* Selection */
::selection {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.main-layout {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .main-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    .sidebar {
        width: 100%;
    }
}

/* ============================================
   Header - Clean & Modern
   ============================================ */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition-normal);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0;
    gap: 1rem;
}

.site-logo {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

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

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.125rem;
}

.header-action:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* Cart Icon */
.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    display: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    z-index: 1050;
    list-style: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: background var(--transition-fast);
}

.dropdown-menu .dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.dropdown-menu .dropdown-item i {
    width: 1.25rem;
    color: var(--text-muted);
}

.dropdown-menu .dropdown-item:hover i {
    color: var(--primary);
}

.dropdown-menu .dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    border-top: 1px solid var(--border-color);
}

.dropdown-menu .text-danger {
    color: var(--danger) !important;
}

.dropdown-menu .text-danger:hover {
    background: #fef2f2;
}

.dropdown-menu .text-danger i {
    color: var(--danger);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    cursor: pointer;
    border: none;
    background: transparent;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
}

/* ============================================
   Featured Post (Hero) - Eye-catching
   ============================================ */
.featured-post {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    transition: box-shadow var(--transition-normal);
}

.featured-post:hover {
    box-shadow: var(--shadow-lg);
}

.featured-post-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-hover);
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.featured-post:hover .featured-post-image img {
    transform: scale(1.03);
}

.featured-post-image .post-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.featured-post-content {
    padding: 1.5rem 1.75rem 1.75rem;
}

.featured-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.featured-post-meta i {
    margin-right: 0.25rem;
    opacity: 0.7;
}

.featured-post-title {
    font-size: 1.625rem;
    margin-bottom: 0.625rem;
    line-height: 1.35;
}

.featured-post-title a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.featured-post-title a:hover {
    color: var(--primary);
}

.featured-post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
}

.read-more i {
    transition: transform var(--transition-fast);
}

.read-more:hover i {
    transform: translateX(4px);
}

/* ============================================
   Post Cards Grid - Clean Cards
   ============================================ */
.posts-section-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--border-color);
}

.post-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-hover);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.post-card-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

.post-card-content {
    padding: 1.125rem;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.post-card-meta i {
    opacity: 0.7;
}

.post-card-title {
    font-size: 1.0625rem;
    margin-bottom: 0.375rem;
    line-height: 1.4;
    font-weight: 600;
}

.post-card-title a {
    color: var(--text-primary);
}

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

.post-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Sidebar - Clean Widgets
   ============================================ */
.sidebar-widget {
    background: var(--bg-sidebar);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.widget-title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid var(--primary);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* About Widget */
.about-widget {
    text-align: center;
}

.about-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 0.875rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.about-name {
    font-size: 1rem;
    margin-bottom: 0.375rem;
    font-weight: 600;
}

.about-bio {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Categories Widget */
.categories-list {
    list-style: none;
}

.categories-list li {
    border-bottom: 1px solid var(--border-light);
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.categories-list a:hover {
    color: var(--primary);
}

.categories-list .count {
    background: var(--bg-hover);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.categories-list a:hover .count {
    background: var(--primary-light);
    color: var(--primary);
}

/* Empty Category */
.categories-list .empty-category {
    opacity: 0.6;
}

.categories-list .category-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.categories-list .empty-text {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--text-muted);
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
}

.recent-post-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border-light);
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-item:first-child {
    padding-top: 0;
}

.recent-post-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-hover);
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-thumb.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.25rem;
}

.recent-post-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    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.75rem;
    color: var(--text-muted);
}

/* Newsletter Widget */
.newsletter-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.newsletter-form input[type="email"] {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    background: var(--bg-card);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.newsletter-form button {
    padding: 0.75rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.newsletter-form button:hover {
    background: var(--primary-hover);
}

/* Social Links Widget */
.social-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--bg-hover);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   Single Post - Readable Content
   ============================================ */
.single-post {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.single-post-header {
    padding: 1.75rem 1.75rem 1.25rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

.breadcrumb .separator {
    color: var(--border-dark);
}

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

.single-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.single-post-meta i {
    margin-right: 0.375rem;
    color: var(--text-muted);
}

.reading-time {
    color: var(--primary);
    font-weight: 500;
}

.single-post-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-hover);
}

.single-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-content {
    padding: 1.75rem;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.single-post-content p {
    margin-bottom: 1.5em;
    color: var(--text-secondary);
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin-top: 2em;
    margin-bottom: 0.75em;
    color: var(--text-primary);
}

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

.single-post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5em 0;
    background: var(--bg-hover);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.single-post-content code {
    background: var(--bg-hover);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.9em;
}

.single-post-content pre {
    background: var(--bg-footer);
    color: var(--text-light);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.5em 0;
}

.single-post-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Tags */
.post-tags,
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tags {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--border-color);
}

.post-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.post-tag:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-hover);
    border-radius: var(--radius-lg);
    margin: 1.5rem 1.75rem;
}

.author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.author-avatar.initials {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
}

.author-info h4 {
    font-size: 1.0625rem;
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.author-bio {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    border-top: 1px solid var(--border-color);
}

.post-navigation-single {
    grid-template-columns: 1fr;
}

.post-nav-link {
    padding: 1rem;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.post-nav-link:hover {
    background: var(--primary-light);
}

.post-nav-link.next {
    text-align: right;
}

.post-nav-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-nav-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Related Posts */
.related-posts {
    padding: 1.75rem;
    border-top: 1px solid var(--border-color);
}

.related-posts-title {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 992px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

.related-post-card {
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.related-post-card:hover {
    transform: translateY(-2px);
}

.related-post-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--border-light);
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.related-post-content {
    padding: 0.75rem;
}

.related-post-title {
    font-size: 0.8125rem;
    line-height: 1.4;
    font-weight: 600;
}

.related-post-title a {
    color: var(--text-primary);
}

.related-post-title a:hover {
    color: var(--primary);
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--border-color);
}

.share-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    color: white;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.share-btn:hover {
    opacity: 0.85;
    color: white;
    transform: translateY(-2px);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #000000; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.whatsapp { background: #25d366; }

/* ============================================
   Archive Page
   ============================================ */
.archive-header {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.archive-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    margin-bottom: 0.375rem;
}

.archive-title i {
    color: var(--primary);
}

.archive-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.archive-post {
    display: flex;
    gap: 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.archive-post:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.archive-post-image {
    width: 220px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg-hover);
}

.archive-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.archive-post:hover .archive-post-image img {
    transform: scale(1.05);
}

.archive-post-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

.archive-post-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.archive-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.archive-post-meta i {
    opacity: 0.7;
}

.archive-post-title {
    font-size: 1.1875rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.archive-post-title a {
    color: var(--text-primary);
}

.archive-post-title a:hover {
    color: var(--primary);
}

.archive-post-excerpt {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .archive-post {
        flex-direction: column;
    }
    .archive-post-image {
        width: 100%;
        aspect-ratio: 16/9;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

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

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

/* ============================================
   Footer - Dark & Clean
   ============================================ */
.site-footer {
    background: var(--bg-footer);
    color: var(--text-light);
    padding: 2.5rem 0 1.25rem;
    margin-top: 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.footer-widget h4 {
    color: var(--text-light);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

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

.footer-social {
    display: flex;
    gap: 0.625rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

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

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

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

.btn-secondary:hover {
    background: #374151;
    border-color: #374151;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-card);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    transition: left var(--transition-normal);
    overflow-y: auto;
}

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

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

.mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-menu-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.mobile-menu-nav {
    padding: 0.75rem 0;
}

.mobile-menu-nav a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

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

.mobile-menu-nav hr {
    margin: 0.5rem 1.25rem;
    border: none;
    border-top: 1px solid var(--border-color);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

/* ============================================
   Search Modal
   ============================================ */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    width: 100%;
    max-width: 560px;
    padding: 0 1.25rem;
}

.search-form {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.search-form input {
    flex: 1;
    padding: 1.125rem 1.25rem;
    border: none;
    font-size: 1rem;
    background: transparent;
}

.search-form input:focus {
    outline: none;
}

.search-form button {
    padding: 1.125rem 1.25rem;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    transition: background var(--transition-fast);
}

.search-form button:hover {
    background: var(--primary-hover);
}

.search-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: 1.125rem;
}

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

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:disabled,
.form-control[readonly] {
    background: var(--bg-hover);
    cursor: not-allowed;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

.invalid-feedback {
    font-size: 0.8125rem;
    color: var(--danger);
    margin-top: 0.375rem;
}

.form-control.is-invalid {
    border-color: var(--danger);
}

/* ============================================
   Tables
   ============================================ */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table th,
.table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    background: var(--bg-hover);
}

.table tbody tr:hover {
    background: var(--bg-hover);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ============================================
   Alerts
   ============================================ */
.flash-messages {
    margin-top: 1rem;
}

.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-hover);
}

/* ============================================
   Badges
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }

.bg-primary { background-color: var(--primary) !important; color: white !important; }
.bg-secondary { background-color: var(--secondary) !important; color: white !important; }
.bg-success { background-color: var(--success) !important; color: white !important; }
.bg-danger { background-color: var(--danger) !important; color: white !important; }
.bg-warning { background-color: var(--warning) !important; color: #1e293b !important; }
.bg-info { background-color: var(--info) !important; color: white !important; }

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-new { background: #dbeafe; color: #1e40af; }
.status-preparing { background: #fef3c7; color: #92400e; }
.status-shipped { background: #cffafe; color: #0e7490; }
.status-completed { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* ============================================
   Profile Pages
   ============================================ */
.profile-header {
    margin-bottom: 1.5rem;
}

.profile-header h1,
.profile-header .h2 {
    font-size: 1.625rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-header p {
    color: var(--text-secondary);
    margin: 0;
}

.profile-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.profile-sidebar .card-body {
    padding: 1.25rem;
}

.profile-avatar {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.avatar-circle {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    font-weight: 700;
}

.profile-avatar h5 {
    margin-top: 0.875rem;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.profile-avatar p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.profile-nav-item:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.profile-nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.profile-nav-item.text-danger {
    color: var(--danger);
}

.profile-nav-item.text-danger:hover {
    background: #fef2f2;
}

.profile-nav-item i {
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
}

.profile-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.profile-section h2,
.profile-section h3 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--border-color);
}

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.25rem 0;
}

/* ============================================
   Auth Pages (Login/Register)
   ============================================ */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-box {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    border: 1px solid var(--border-light);
}

.auth-box h1 {
    font-size: 1.375rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-box .auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.auth-box .btn {
    width: 100%;
    margin-top: 0.5rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.auth-links a {
    color: var(--primary);
    font-weight: 500;
}

/* ============================================
   E-commerce (Shop/Products)
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

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

.product-card-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-hover);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.product-card-body {
    padding: 1rem;
}

.product-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.product-card-title a {
    color: var(--text-primary);
}

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

.product-card-price {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--primary);
}

.product-card-price .old-price {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.empty-state i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-start { text-align: left; }
.text-end { text-align: right; }
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }

.fw-bold { font-weight: 700; }
.fw-medium { font-weight: 500; }
.small { font-size: 0.875rem; }
.h2 { font-size: 1.625rem; font-weight: 700; }

.bg-light { background: var(--bg-hover); }

/* Spacing */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 2.5rem !important; margin-bottom: 2.5rem !important; }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }
.ms-1 { margin-left: 0.25rem; }
.ms-2 { margin-left: 0.5rem; }
.ms-3 { margin-left: 1rem; }

.p-0 { padding: 0 !important; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }

/* Flexbox */
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.w-100 { width: 100%; }

/* Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.625rem;
    margin-right: -0.625rem;
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
}

.col-md-3 { flex: 0 0 auto; width: 100%; }
.col-md-6 { flex: 0 0 auto; width: 100%; }
.col-md-9 { flex: 0 0 auto; width: 100%; }
.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 768px) {
    .col-md-3 { width: 25%; }
    .col-md-6 { width: 50%; }
    .col-md-9 { width: 75%; }
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    body {
        font-size: 0.9375rem;
    }

    h1 { font-size: 1.625rem; }
    h2 { font-size: 1.375rem; }
    h3 { font-size: 1.125rem; }

    .container {
        padding: 0 1rem;
    }

    .single-post-header,
    .single-post-content,
    .author-box,
    .post-tags,
    .social-share,
    .post-navigation,
    .related-posts {
        padding: 1.25rem;
    }

    .featured-post-content {
        padding: 1.125rem;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .single-post-title {
        font-size: 1.5rem;
    }

    .featured-post-title {
        font-size: 1.375rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .back-to-top,
    .social-share,
    .post-navigation,
    .related-posts {
        display: none !important;
    }

    .main-layout {
        display: block;
    }

    .main-content {
        width: 100%;
    }

    .single-post {
        box-shadow: none;
        border: none;
    }
}
