:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --secondary: #8b5cf6;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    /* Status Colors */
    --color-easy: #22c55e;
    --color-fair: #eab308;
    --color-hard: #f97316;
    --color-very-hard: #ef4444;
    --color-passive: #8b5cf6;
    --color-complex: #a855f7;

    --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
    white-space: nowrap;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.05rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--bg-light);
    border-color: var(--text-muted);
}

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

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-main), #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Hero Visual & Glassmorphism */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    opacity: 0.6;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 0;
    right: 10%;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary);
    bottom: 0;
    left: 10%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
}

.visual-card {
    position: relative;
    z-index: 2;
    padding: 32px;
    width: 100%;
    max-width: 450px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.stat-badge {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
}

.stat-badge.easy {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-easy);
}

.stat-badge.score {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.skeleton-text {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    margin-bottom: 16px;
}

.skeleton-text.line-1 { width: 90%; }
.skeleton-text.line-2 { width: 100%; }
.skeleton-text.line-3 { width: 75%; }
.skeleton-text.highlight-hard { background: rgba(249, 115, 22, 0.3); }

/* Layouts */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 48px;
}

/* Tool Page Grid */
.tool-main {
    padding: 40px 24px;
}

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

.tool-header p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.tool-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.tool-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Editor Section */
.editor-container {
    position: relative;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    min-height: 500px;
    overflow: hidden;
}

.text-editor, .highlights {
    width: 100%;
    height: 100%;
    min-height: 500px;
    padding: 24px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.text-editor {
    position: absolute;
    top: 0;
    left: 0;
    color: transparent; /* Text is invisible, caret is visible */
    background: transparent;
    caret-color: var(--text-main);
    border: none;
    outline: none;
    resize: none;
    z-index: 2;
}

/* When placeholder is showing, make text color visible */
.text-editor:placeholder-shown {
    color: var(--text-muted);
}

.highlights {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    color: var(--text-main);
    background: white;
}

mark {
    border-radius: 3px;
    padding: 2px 0;
}

mark.hard-sentence { background-color: rgba(234, 179, 8, 0.3); } /* Yellow */
mark.very-hard-sentence { background-color: rgba(249, 115, 22, 0.3); } /* Orange */
mark.complex-word { background-color: rgba(168, 85, 247, 0.3); } /* Purple */
mark.passive-voice { background-color: rgba(139, 92, 246, 0.3); } /* Violet */

.legend {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.color-box {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}
.color-box.hard-sentence { background-color: rgba(234, 179, 8, 0.5); }
.color-box.very-hard-sentence { background-color: rgba(249, 115, 22, 0.5); }
.color-box.complex-word { background-color: rgba(168, 85, 247, 0.5); }
.color-box.passive-voice { background-color: rgba(139, 92, 246, 0.5); }


/* Sidebar Stats */
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.score-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.score-card h3 {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    border: 8px solid var(--border);
    color: var(--text-main);
    transition: border-color 0.3s;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.stat-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.detailed-stats {
    padding: 24px;
}

.stats-list {
    list-style: none;
}

.stats-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.stats-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stats-list li span {
    color: var(--text-muted);
}

.ai-feedback {
    padding: 24px;
}

.feedback-empty {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}

.feedback-item {
    padding: 12px;
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

/* Features Grid */
.benefits-grid, .steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-item, .step-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.feature-icon, .step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.blog-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card h3 {
    padding: 20px 20px 8px;
    font-size: 1.25rem;
}

.blog-card p {
    padding: 0 20px 24px;
    color: var(--text-muted);
}

.blog-post {
    max-width: 800px;
    margin: 0 auto;
}
.blog-img {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}
.blog-meta {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 64px 0 24px;
    margin-top: 64px;
}

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

.footer-col h3 {
    font-size: 1rem;
    margin-bottom: 24px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
}

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

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.page-content {
    padding: 60px 24px;
    min-height: 50vh;
}
.page-title {
    font-size: 2.5rem;
    margin-bottom: 32px;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

/* Accessibility & Forms */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

input, textarea {
    font-family: var(--font-body);
}

.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

/* Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-details {
    list-style: none;
    margin-top: 24px;
}

.contact-details li {
    margin-bottom: 12px;
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    background: white;
}

.faq-accordion summary {
    padding: 16px 24px;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--primary);
}

.faq-accordion[open] summary::after {
    content: '-';
}

.faq-content {
    padding: 0 24px 24px;
    color: var(--text-muted);
}

/* New Blog Layout */
.blog-index-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 40px 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.blog-search-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 500px;
    margin: 24px auto;
}

.blog-search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
}

.blog-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.category-tag {
    padding: 6px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

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

.blog-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

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

.category-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.blog-card h3 {
    margin: 0 0 12px 0;
    padding: 0;
}

.blog-card p {
    padding: 0;
    margin-bottom: 16px;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 32px;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-light);
}

.featured-list {
    list-style: none;
}

.featured-list li {
    margin-bottom: 16px;
}

.featured-list a {
    display: flex;
    gap: 12px;
    align-items: center;
}

.featured-list img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.featured-details h4 {
    font-size: 0.95rem;
    margin: 0 0 4px 0;
    color: var(--text-main);
    line-height: 1.3;
}

.featured-details span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 12px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination .btn {
    padding: 8px 16px;
    min-width: 40px;
}

.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Individual Blog Post */
.blog-post-header {
    text-align: center;
    margin-bottom: 48px;
}

.blog-post-header h1 {
    font-size: 3rem;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumbs {
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--text-muted);
}

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

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

.breadcrumbs [aria-current] {
    color: var(--text-main);
    font-weight: 500;
}

.blog-content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 48px;
    align-items: start;
}

.table-of-contents {
    position: sticky;
    top: 100px;
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.table-of-contents h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.table-of-contents ul {
    list-style: none;
}

.table-of-contents li {
    margin-bottom: 12px;
}

.table-of-contents a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.table-of-contents a:hover {
    color: var(--primary);
}

.blog-main-content {
    background: white;
    padding: 48px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-main-content h2 {
    margin-top: 48px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bg-light);
}

.blog-main-content h2:first-child {
    margin-top: 0;
}

.blog-main-content p {
    margin-bottom: 24px;
}

.blog-main-content ul {
    margin-bottom: 24px;
    padding-left: 24px;
}

.blog-main-content li {
    margin-bottom: 8px;
}

.tips-box {
    background: rgba(59, 130, 246, 0.05);
    border-left: 4px solid var(--primary);
    padding: 24px;
    margin: 32px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.tips-box h4 {
    color: var(--primary);
    margin-bottom: 12px;
}

.tips-box p:last-child {
    margin-bottom: 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
}

.comparison-table th, .comparison-table td {
    padding: 16px;
    border: 1px solid var(--border);
    text-align: left;
}

.comparison-table th {
    background: var(--bg-light);
    font-weight: 600;
}

.faq-item {
    margin-bottom: 24px;
}

.faq-item h4 {
    margin-bottom: 8px;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 48px 0;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.post-navigation a {
    font-weight: 600;
}

.related-articles {
    margin-top: 64px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    transition: transform 0.2s;
}

.related-card:hover img {
    transform: translateY(-4px);
}

.related-card h4 {
    font-size: 1rem;
    color: var(--text-main);
}

.features-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

.feature-detail-card {
    background: white;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.benefits-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

.benefit-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-muted);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .table-of-contents {
        position: static;
        margin-bottom: 32px;
    }
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .features-list-grid, .benefits-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post-header h1 {
        font-size: 2rem;
    }
    
    .blog-main-content {
        padding: 24px;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-sm);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hidden-mobile {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media print {
    .header, .footer, .tool-actions, .mobile-menu-btn {
        display: none !important;
    }
    
    .tool-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        display: block;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .editor-container {
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    .sidebar-section {
        margin-top: 30px;
    }
}

/* Premium SaaS Blog Design */
:root {
  --saas-primary: #3b82f6;
  --saas-primary-hover: #2563eb;
  --saas-surface: #ffffff;
  --saas-background: #f8fafc;
  --saas-text: #0f172a;
  --saas-text-muted: #64748b;
  --saas-border: #e2e8f0;
  --saas-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --saas-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --saas-radius: 16px;
  --saas-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  background-color: var(--saas-background);
  color: var(--saas-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.blog-card {
  background: var(--saas-surface);
  border-radius: var(--saas-radius);
  overflow: hidden;
  box-shadow: var(--saas-shadow);
  transition: var(--saas-transition);
  border: 1px solid var(--saas-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.blog-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-label {
  background: rgba(59, 130, 246, 0.1);
  color: var(--saas-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.blog-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--saas-text);
}

.blog-card p {
  color: var(--saas-text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--saas-border);
  padding-top: 16px;
  color: var(--saas-text-muted);
  font-size: 0.9rem;
}

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

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

/* Article Pages */
.blog-post-header {
  text-align: center;
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.blog-post-header h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 20px 0;
  color: var(--saas-text);
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--saas-text-muted);
  margin-bottom: 40px;
  font-size: 1rem;
}

.hero-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--saas-radius);
  box-shadow: var(--saas-shadow);
  margin-bottom: 40px;
}

.blog-content-wrapper {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.table-of-contents {
  position: sticky;
  top: 100px;
  background: var(--saas-surface);
  padding: 24px;
  border-radius: var(--saas-radius);
  border: 1px solid var(--saas-border);
  box-shadow: var(--saas-shadow);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.table-of-contents h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.table-of-contents li {
  margin-bottom: 12px;
}

.table-of-contents a {
  color: var(--saas-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
  display: block;
}

.table-of-contents a:hover, .table-of-contents a.active {
  color: var(--saas-primary);
  font-weight: 600;
}

.blog-main-content {
  background: var(--saas-surface);
  padding: 40px;
  border-radius: var(--saas-radius);
  box-shadow: var(--saas-shadow);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--saas-text);
}

.blog-main-content h2, .blog-main-content h3 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--saas-text);
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 24px;
}
.breadcrumbs ol {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--saas-text-muted);
}
.breadcrumbs li::after {
  content: "/";
  margin-left: 8px;
}
.breadcrumbs li:last-child::after {
  content: "";
}
.breadcrumbs a {
  color: var(--saas-primary);
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Post Navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--saas-border);
}
.post-navigation a {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: var(--saas-primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s;
}
.post-navigation a:hover {
  background: var(--saas-primary-hover);
}

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--saas-surface);
  border: 1px solid var(--saas-border);
  color: var(--saas-text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.share-btn:hover {
  background: var(--saas-primary);
  color: white;
  border-color: var(--saas-primary);
}

/* Progress Bar */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 9999;
}
.reading-progress-bar {
  height: 100%;
  background: var(--saas-primary);
  width: 0%;
}

/* Responsive */
@media (max-width: 992px) {
  .blog-content-wrapper {
    grid-template-columns: 1fr;
  }
  .table-of-contents {
    position: static;
    max-height: none;
    margin-bottom: 40px;
  }
  .blog-post-header h1 {
    font-size: 2.5rem;
  }
}
@media (max-width: 768px) {
  .blog-post-header h1 {
    font-size: 2rem;
  }
  .blog-main-content {
    padding: 24px;
  }
  .post-navigation {
    flex-direction: column;
    gap: 16px;
  }
}

/* Mobile and Accessibility fixes */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

button, a {
  touch-action: manipulation;
}

@media (max-width: 768px) {
  button, .btn, .share-btn, .category-btn {
    min-height: 48px;
    min-width: 48px;
    padding: 12px 24px;
  }
  
  .blog-card {
    margin-bottom: 24px;
  }
  
  .table-of-contents {
    padding: 16px;
  }
  
  .hero-image {
    max-height: 300px;
  }
}

/* Custom utility classes to replace Tailwind since we went pure static */
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-blue-600 { background-color: #2563eb; }
.bg-blue-700 { background-color: #1d4ed8; }
.text-blue-600 { color: #2563eb; }
.text-blue-800 { color: #1e40af; }
.text-blue-900 { color: #1e3a8a; }
.border-blue-100 { border-color: #dbeafe; }

.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-900 { background-color: #111827; }
.text-gray-400 { color: #9ca3af; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.text-white { color: #ffffff; }

.p-2 { padding: 0.5rem; }
.p-8 { padding: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-12 { margin-top: 3rem; margin-bottom: 3rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 { gap: 1rem; }

.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-style: solid; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.hover\:text-blue-800:hover { color: #1e40af; }
.hover\:bg-blue-600:hover { background-color: #2563eb; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.whitespace-nowrap { white-space: nowrap; }
.border-collapse { border-collapse: collapse; }

@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
}

/* Ensure our inputs look good */
input { border: 1px solid #d1d5db; }
