/* Modern Blog - Beautiful CSS Styling */

/* CSS Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #0f1419;
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px 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.12);
    
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Reading mode */
    --reading-font-scale: 1;
}

/* Dark Mode (Reading) */
body.theme-dark {
    --bg-primary: #0f1419;
    --bg-secondary: rgba(255, 255, 255, 0.06);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-light: rgba(255, 255, 255, 0.55);
    --border-color: rgba(255, 255, 255, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-base);
}

/* Prefer a slightly translucent header when supported (works in both light/dark modes) */
@supports (background: color-mix(in srgb, white 50%, transparent)) {
    .navbar {
        background: color-mix(in srgb, var(--bg-primary) 92%, transparent);
    }
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition-base);
}

.search-toggle:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

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

.search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 24px;
    position: relative;
}

.search-close {
    position: absolute;
    top: 40px;
    right: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    opacity: 0.7;
    transition: var(--transition-base);
}

.search-close:hover {
    opacity: 1;
}

.search-input {
    width: 100%;
    padding: 24px 32px;
    font-size: 32px;
    font-weight: 300;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    outline: none;
    transition: var(--transition-base);
}

.search-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

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

.search-results {
    margin-top: 32px;
    display: grid;
    gap: 16px;
}

.search-result-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    display: block;
    transition: var(--transition-base);
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 120px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 600px;
    background: var(--primary-gradient);
    opacity: 0.05;
    border-radius: 0 0 50% 50%;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    font-family: 'Playfair Display', serif;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.hero-search-input {
    width: 100%;
    padding: 20px 60px 20px 24px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    outline: none;
    transition: var(--transition-base);
    background: white;
    box-shadow: var(--shadow-md);
}

.hero-search-input:focus {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.hero-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-base);
}

.hero-search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-gradient);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-gradient);
    bottom: -50px;
    left: -50px;
    animation-delay: 5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-gradient);
    top: 40%;
    left: 10%;
    animation-delay: 10s;
}

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

/* Categories Section */
.categories {
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-base);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #667eea;
}

.category-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Tag Cloud */
.tag-cloud-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.tag-cloud-header {
    text-align: center;
    margin-bottom: 48px;
}

.tag-cloud-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tag-cloud-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tag-cloud-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.tag-cloud-item:hover::before {
    left: 100%;
}

.tag-cloud-item:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.tag-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

/* Responsive tag sizes based on popularity */
.tag-cloud-item[data-weight="1"] {
    opacity: 0.7;
}

.tag-cloud-item[data-weight="2"] {
    opacity: 0.8;
}

.tag-cloud-item[data-weight="3"] {
    opacity: 0.9;
}

.tag-cloud-item[data-weight="4"],
.tag-cloud-item[data-weight="5"] {
    opacity: 1;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-filters {
    display: flex;
    gap: 12px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 24px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-base);
    color: var(--text-secondary);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

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

.post-image {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}

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

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

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.post-category {
    background: white;
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content {
    padding: 24px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.post-dot {
    opacity: 0.5;
}

.post-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition-base);
}

.read-more:hover {
    gap: 12px;
}

.read-more svg {
    transition: var(--transition-base);
}

.load-more-wrapper {
    text-align: center;
}

.load-more-btn {
    padding: 16px 48px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Newsletter Section */
.newsletter {
    padding: 100px 0;
    background: var(--dark-gradient);
    color: white;
    text-align: center;
}

.newsletter-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.newsletter-subtitle {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 40px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
}

.newsletter-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    outline: none;
    transition: var(--transition-base);
}

.newsletter-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-btn {
    padding: 16px 32px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-base);
}

.newsletter-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: #0f1419;
    color: white;
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: var(--transition-base);
}

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

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.visitor-counter {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.7;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
    
    .section-filters {
        overflow-x: auto;
        width: 100%;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .search-input {
        font-size: 24px;
        padding: 20px 24px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card {
    animation: fadeIn 0.6s ease forwards;
}

.post-card[data-href] {
    cursor: pointer;
}

.post-card[data-href]:focus {
    outline: 2px solid var(--border-color);
    outline-offset: 4px;
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }
.post-card:nth-child(5) { animation-delay: 0.5s; }
.post-card:nth-child(6) { animation-delay: 0.6s; }

/* Post Detail Page Styles */
.post-detail-page {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 48px;
    margin-top: 120px;
    margin-bottom: 80px;
}

.post-detail {
    background: var(--bg-primary);
}

.post-header {
    margin-bottom: 40px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

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

.post-detail .post-title {
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.post-featured-image {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 48px;
}

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

.post-detail .post-content {
    font-size: calc(1.125rem * var(--reading-font-scale));
    line-height: 1.8;
    color: var(--text-primary);
}

.post-detail .post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 48px 0 24px;
    color: var(--text-primary);
}

.post-detail .post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 36px 0 20px;
    color: var(--text-primary);
}

.post-detail .post-content p {
    margin-bottom: 24px;
}

.post-detail .post-content ul, .post-detail .post-content ol {
    margin: 24px 0;
    padding-left: 32px;
}

.post-detail .post-content li {
    margin-bottom: 12px;
}

.post-detail .post-content code {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875em;
}

.post-detail .post-content pre {
    background: var(--bg-dark);
    color: #e5e7eb;
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 32px 0;
}

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

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 2500;
    background: transparent;
}

.reading-progress-bar {
    height: 100%;
    width: 0;
    background: var(--primary-gradient);
    transition: width var(--transition-fast);
}

/* Table of Contents */
.toc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toc-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
}

.toc-link:hover {
    color: var(--text-primary);
}

.toc-link.toc-link-sub {
    padding-left: 12px;
    font-weight: 500;
    opacity: 0.9;
}

.post-tags {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border-color);
}

.post-tags h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tags-list .tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

.tags-list .tag:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
}

.comments-section {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 32px;
}

/* Comment Form */
.comment-form-container {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 32px;
}

.comment-form-container h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.comment-form .form-group {
    margin-bottom: 16px;
}

/* Captcha styling for comments */
.captcha-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.captcha-text {
    display: inline-block;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 2px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

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

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

.comment-form .btn-primary {
    margin-top: 8px;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comment {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.comment.reply {
    margin-left: 60px;
    background: rgba(99, 102, 241, 0.05);
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.comment.reply .comment-avatar img {
    width: 40px;
    height: 40px;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

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

.badge-admin, .badge-author, .badge-guest {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-admin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-author {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.badge-guest {
    background: #e5e7eb;
    color: #6b7280;
}

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

.comment-content {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.comment-content p {
    margin-bottom: 8px;
}

.comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.btn-reply {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
    font-size: 0.875rem;
    transition: opacity 0.2s;
}

.btn-reply:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Reply Form */
.reply-form-container {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.reply-form .form-group {
    margin-bottom: 12px;
}

.reply-form textarea {
    min-height: 80px;
}

.reply-form .form-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Replies List */
.replies-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.no-comments {
    color: var(--text-secondary);
    text-align: center;
    padding: 48px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .comment {
        flex-direction: column;
    }
    
    .comment.reply {
        margin-left: 20px;
    }
    
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Styles */
.post-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.sidebar-widget p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Ensure share buttons fit the sidebar */
.share-buttons .btn-share {
    width: 100%;
    justify-content: center;
}

.newsletter-form-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form-sidebar input {
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all var(--transition-base);
}

.newsletter-form-sidebar input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.newsletter-form-sidebar button {
    padding: 14px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.newsletter-form-sidebar button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive Design for Post Detail */
@media (max-width: 1024px) {
    .post-detail-page {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .post-sidebar {
        position: static;
    }
    
    .post-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .post-detail-page {
        margin-top: 100px;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-featured-image {
        height: 300px;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .sidebar-widget {
        padding: 24px;
    }
}

/* Authentication Pages Styles */
.auth-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -8px 0 8px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
}

.forgot-link {
    font-size: 0.875rem;
    color: #667eea;
    text-decoration: none;
    transition: color var(--transition-base);
}

.forgot-link:hover {
    color: #764ba2;
}

.btn-full {
    width: 100%;
    margin-top: 8px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-base);
}

.auth-footer a:hover {
    color: #764ba2;
}

.demo-credentials {
    margin-top: 24px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    text-align: center;
}

.demo-credentials p {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin: 4px 0;
}

.demo-credentials code {
    background: var(--bg-dark);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.75rem;
    color: #e5e7eb;
}

/* Alert Messages */
.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

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

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

/* Profile Page Styles */
.profile-page {
    padding: 120px 0 80px;
    min-height: calc(100vh - 80px);
}

.profile-container {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 48px;
    background: var(--bg-secondary);
    border-radius: 16px;
    margin-bottom: 32px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.profile-avatar-large span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: white;
    font-size: 3rem;
    font-weight: 600;
}

.profile-info h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.profile-username {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.profile-role {
    margin-top: 8px;
}

.role-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-admin {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.role-author {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.role-editor {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.role-reader {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-card {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: 16px;
}

.profile-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.info-item label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.info-item p {
    color: var(--text-primary);
    font-size: 1rem;
}

.social-links-profile {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-primary);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all var(--transition-base);
}

.social-link-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

/* Responsive Profile */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
    
    .profile-avatar-large {
        width: 100px;
        height: 100px;
    }
    
    .profile-avatar-large span {
        font-size: 2.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        padding: 24px;
    }
}

/* Static Pages (About, Privacy, Contact) */
.hero.hero--page {
    padding: 140px 0 70px;
}

.hero.hero--page .hero-title {
    font-size: 56px;
    margin-bottom: 16px;
}

.hero.hero--page .hero-subtitle {
    margin-bottom: 0;
}

.static-page-section {
    padding: 40px 0 90px;
}

.content-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .hero.hero--page {
        padding: 130px 0 60px;
    }

    .hero.hero--page .hero-title {
        font-size: 44px;
    }

    .content-card {
        padding: 24px;
    }
}

/* Contact page form layout */
.contact-page .form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .contact-page .form-row.two-col {
        grid-template-columns: 1fr;
    }
}

/* Button Styles */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--text-primary);
}

/* Social Share Buttons */
.btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

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

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

.btn-share svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.btn-share.btn-share-sm {
    padding: 10px 14px;
    border-radius: 10px;
}

.btn-share.btn-share-sm svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

/* Use existing gradients for platform differentiation */
.btn-share.facebook { background: var(--primary-gradient); }
.btn-share.twitter { background: var(--accent-gradient); }
.btn-share.linkedin { background: var(--dark-gradient); }
.btn-share.whatsapp { background: var(--accent-gradient); }
.btn-share.pinterest { background: var(--secondary-gradient); }
.btn-share.email { background: var(--primary-gradient); }
.btn-share.copy { background: var(--dark-gradient); }
.btn-share.print { background: var(--secondary-gradient); }

/* Captcha Styles */
.captcha-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.captcha-question {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.captcha-input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
    background: var(--bg-primary);
}

.captcha-refresh {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

.captcha-refresh:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* ==================== ADMIN DASHBOARD STYLES ==================== */

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.admin-header {
    margin-bottom: 40px;
}

.admin-title h1 {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.admin-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

a.stat-card:hover {
    cursor: pointer;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.stat-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    color: #666;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.stat-badge-success {
    background: #d4edda;
    color: #155724;
}

/* Admin Filters */
.admin-filters {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 32px;
}

.filter-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-select:hover {
    border-color: #667eea;
}

/* Admin Sections */
.admin-section {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 32px;
}

.admin-section h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    margin-bottom: 0;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.action-card {
    padding: 24px;
    background: linear-gradient(135deg, #f6f8fb 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.action-card:hover {
    transform: translateY(-4px);
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.action-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.action-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.action-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Admin Table */
.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.admin-table thead th {
    padding: 16px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.admin-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.admin-table tbody tr:hover {
    background: #f8f9fa;
}

.admin-table tbody td {
    padding: 16px;
    color: var(--text-primary);
    vertical-align: middle;
}

.table-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.table-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-published {
    background: #d4edda;
    color: #155724;
}

.status-draft {
    background: #fff3cd;
    color: #856404;
}

.status-scheduled {
    background: #cfe2ff;
    color: #084298;
}

.status-active {
    background: #d1ecf1;
    color: #0c5460;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.role-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-admin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.role-author {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.role-reader {
    background: #e9ecef;
    color: #495057;
}

.category-badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.count-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e9ecef;
    color: #495057;
    border-radius: 12px;
    font-size: 0.8rem;
}

.badge-you {
    display: inline-block;
    padding: 4px 8px;
    background: #667eea;
    color: white;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: 8px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-action.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-action.btn-success {
    background: #28a745;
    color: white;
}

.btn-action.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-action.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-icon {
    padding: 8px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #f8f9fa;
}

.btn-icon.btn-danger:hover {
    background: #dc3545;
}

/* Forms */
.form-card {
    background: linear-gradient(135deg, #f6f8fb 0%, #ffffff 100%);
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.form-card h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.admin-form .form-row-inline {
    display: flex;
    gap: 16px;
    align-items: end;
}

.admin-form .form-group-flex {
    flex: 1;
}

.admin-form .form-group-button {
    margin-bottom: 0;
}

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

.admin-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.admin-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Tags Grid */
.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.tag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f6f8fb 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.tag-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.tag-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tag-name {
    font-weight: 600;
    color: var(--text-primary);
}

.tag-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #e0f7fa 0%, #e1f5fe 100%);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #00acc1;
}

.info-box h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.info-box ul {
    margin: 12px 0;
    padding-left: 24px;
}

.info-box li {
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* User name in navbar */
.user-name {
    padding: 10px 16px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Form Grid and Radio Groups */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all var(--transition-base);
}

.radio-label:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.radio-label input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.radio-label input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

.form-text {
    display: block;
    margin-top: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .tags-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        font-size: 0.85rem;
    }
    
    .admin-table thead th,
    .admin-table tbody td {
        padding: 12px 8px;
    }
    
    .dashboard-row {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Enhancements */
.stat-trend {
    margin-top: 8px;
    font-size: 0.875rem;
}

.trend-up {
    color: #10b981;
    font-weight: 500;
}

.trend-down {
    color: #ef4444;
    font-weight: 500;
}

.stat-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Popular Posts */
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popular-post-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.popular-post-item:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.popular-post-rank {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-secondary);
    min-width: 40px;
}

.popular-post-content {
    flex: 1;
}

.popular-post-title {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.popular-post-title:hover {
    color: #667eea;
}

.popular-post-meta {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Content Health */
.content-health-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.health-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.health-item.health-warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.health-item.health-success {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.health-icon {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
}

.health-content {
    flex: 1;
}

.health-content strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.health-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.health-action {
    padding: 8px 16px;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.health-action:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Quick Actions Toolbar */
.quick-toolbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    margin-bottom: 24px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.toolbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.toolbar-search {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.toolbar-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
}

.toolbar-search input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.toolbar-search input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-btn,
.toolbar-actions a,
.toolbar-actions button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.toolbar-btn:hover,
.toolbar-actions a:hover,
.toolbar-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.toolbar-actions button {
    background: #6b7280;
}

/* Admin Comments Styles */
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.filter-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.comments-admin-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-admin-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    border-left: 4px solid transparent;
}

.comment-admin-card:hover {
    border-left-color: var(--primary-color);
}

.comment-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.comment-admin-author {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex: 1;
}

.comment-admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-admin-meta {
    display: flex;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 4px;
    flex-wrap: wrap;
}

.comment-admin-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

.comment-admin-meta a:hover {
    text-decoration: underline;
}

.comment-admin-status {
    flex-shrink: 0;
}

.comment-admin-content {
    padding: 16px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 8px;
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--text-primary);
}

.comment-admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .comment-admin-header {
        flex-direction: column;
    }
    
    .comment-admin-actions {
        flex-direction: column;
    }
    
    .comment-admin-actions button {
        width: 100%;
    }
}

.toolbar-actions button:hover {
    background: #4b5563;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.toolbar-actions svg {
    width: 18px;
    height: 18px;
}

.toolbar-notification {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.chart-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chart-header {
    margin-bottom: 16px;
}

.chart-header h3 {
    font-size: 1rem;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.chart-header p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

.chart-container canvas {
    max-height: 250px;
}

/* Responsive Toolbar and Charts */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .toolbar-content {
        flex-direction: column;
    }
    
    .toolbar-search {
        max-width: 100%;
    }
    
    .toolbar-actions {
        width: 100%;
        overflow-x: auto;
    }
    
    .toolbar-actions a,
    .toolbar-actions button {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

/* Visitor Geography */
.geography-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.geography-item {
    display: grid;
    grid-template-columns: 48px 1fr 200px;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.geography-item:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.country-flag {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.flag-emoji {
    font-size: 2rem;
}

.country-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.country-info strong {
    font-size: 1rem;
    color: #1f2937;
}

.country-visits {
    font-size: 0.875rem;
    color: #6b7280;
}

.country-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.country-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

@media (max-width: 768px) {
    .geography-item {
        grid-template-columns: 40px 1fr;
        gap: 12px;
    }
    
    .country-bar {
        grid-column: 1 / -1;
    }
}
/* Admin Menu Cards */
.admin-menu-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.admin-menu-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.admin-menu-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    transform: translateX(4px);
}

.admin-menu-link:hover span {
    color: white !important;
}

.admin-menu-link:hover .admin-menu-badge {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}