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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 15px;
}

/* Header - Navbar Style */
header {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding: 12px 20px;
    margin-bottom: 15px;
    border-bottom: none;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.site-title {
    text-decoration: none;
}

.site-title h1 {
    transition: opacity 0.2s ease;
}

.site-title:hover h1 {
    opacity: 0.9;
}

.tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin: 0;
    padding-left: 12px;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.nav-links a.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Main Content Area */
.content-wrapper {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

/* Text Input Section */
.input-section {
    background: white;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.input-section:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08), 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Summary Bar */
.summary-bar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px 24px 18px;
    margin-bottom: 16px;
    border: 1px solid #e1e8ed;
}

/* Primary Stats - Hero Display */
.primary-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 2px solid #dee2e6;
}

.primary-stat {
    text-align: center;
}

.primary-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 6px;
}

.primary-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.primary-stat.words .primary-value {
    color: #3498db;
}

.primary-stat.characters .primary-value {
    color: #2ecc71;
}

/* Secondary Stats - Compact Display */
.secondary-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.secondary-stat {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.secondary-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
}

.secondary-value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

/* Utility Bar */
.utility-bar {
    margin-top: 20px;
}

.utility-title {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.utility-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.utility-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.utility-btn:hover {
    border-color: #3498db;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.15);
}

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

/* SEO Content Section */
.seo-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 25px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.seo-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.seo-section h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.seo-section p {
    color: #5a6c7d;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.seo-section p:last-child {
    margin-bottom: 0;
}

textarea {
    width: 100%;
    min-height: 300px;
    padding: 20px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid #3498db;
    border-radius: 12px;
    resize: vertical;
    outline: none;
    background: white;
    color: #2c3e50;
}

textarea::placeholder {
    color: #95a5a6;
}


/* Footer */
footer {
    text-align: center;
    padding: 32px 20px;
    margin-top: 20px;
}

.footer-content {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid #dce3e8;
}

.footer-content p {
    color: #7c8a96;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.footer-content .copyright {
    font-size: 0.8rem;
    margin-top: 4px;
    color: #a0aab4;
}

.trust-signals {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 500;
}

footer a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #2980b9;
}

/* Blog Styles */
.blog-list {
    max-width: 720px;
    margin: 0 auto;
}

.blog-intro {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e1e8ed;
}

.blog-intro h1 {
    color: #1a252f;
    font-size: 1.75rem;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.blog-intro p {
    color: #5a6c7d;
    font-size: 1.05rem;
    line-height: 1.6;
}

.post-card {
    background: white;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06), 0 12px 28px rgba(0, 0, 0, 0.1);
}

.post-card h2 {
    margin: 0 0 12px;
    font-size: 1.65rem;
    line-height: 1.3;
    letter-spacing: -0.4px;
}

.post-card h2 a {
    color: #1a252f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card h2 a:hover {
    color: #27ae60;
}

.post-meta {
    color: #7c8a96;
    font-size: 0.85rem;
    margin-bottom: 14px;
    font-weight: 500;
    display: flex;
    gap: 6px;
    align-items: center;
}

.post-meta span {
    margin-right: 0;
}

.post-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 6px;
    color: #c5cdd5;
}

.post-summary {
    color: #4a5968;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 20px;
}

.post-summary h2,
.post-summary h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 16px 0 8px;
    font-weight: 600;
}

.post-summary p {
    margin-bottom: 12px;
}

.post-summary p:last-child {
    margin-bottom: 0;
}

/* Table styles for blog list summaries */
.post-summary table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.9rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #27ae60;
}

.post-summary table thead {
    background: #f0faf4;
}

.post-summary table th {
    color: #1a252f;
    font-weight: 600;
    text-align: left;
    padding: 10px 12px;
    font-size: 0.85rem;
    border-bottom: 2px solid #27ae60;
}

.post-summary table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e9ecef;
    color: #4a5968;
}

.post-summary table tbody tr:last-child td {
    border-bottom: none;
}

.post-summary table tbody tr:nth-child(even) {
    background: #f8faf9;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #27ae60;
    background: #f0faf4;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.read-more::after {
    content: "\2192";
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.read-more:hover {
    background: #27ae60;
    color: white;
}

.read-more:hover::after {
    transform: translateX(3px);
}

.no-posts {
    text-align: center;
    color: #7c8a96;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
}

/* Single Article Styles */
.article-content {
    background: white;
    border-radius: 16px;
    padding: 40px 48px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 25px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e9ecef;
}

.article-header h1 {
    color: #1a252f;
    font-size: 2.2rem;
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-meta {
    color: #7c8a96;
    font-size: 0.875rem;
    display: flex;
    gap: 6px;
    align-items: center;
    font-weight: 500;
    flex-wrap: wrap;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
}

.article-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 6px;
    color: #c5cdd5;
}

.article-body {
    max-width: 100%;
}

.article-body > *:first-child {
    margin-top: 0;
}

.article-content h2 {
    color: #1a252f;
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: -0.3px;
    padding-top: 8px;
}

.article-content h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-top: 32px;
    margin-bottom: 12px;
    font-weight: 600;
}

.article-content p {
    color: #4a5968;
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    color: #4a5968;
    margin-bottom: 20px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-content li::marker {
    color: #27ae60;
}

.article-content a {
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.article-content a:hover {
    color: #1e8449;
    text-decoration: underline;
}

.article-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.article-content code {
    background: #f4f6f8;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e74c3c;
}

.article-content pre {
    background: #f8faf9;
    color: #2c3e50;
    padding: 20px 24px;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.article-content blockquote {
    border-left: 3px solid #27ae60;
    padding: 16px 24px;
    margin: 24px 0;
    background: #f8faf9;
    border-radius: 0 8px 8px 0;
    color: #5a6c7d;
    font-style: italic;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Table Styles */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #27ae60;
}

.article-content table thead {
    background: #f0faf4;
}

.article-content table th {
    color: #1a252f;
    font-weight: 600;
    text-align: left;
    padding: 14px 16px;
    font-size: 0.9rem;
    border-bottom: 2px solid #27ae60;
}

.article-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    color: #4a5968;
}

.article-content table tbody tr:last-child td {
    border-bottom: none;
}

.article-content table tbody tr:nth-child(even) {
    background: #f8faf9;
}

.article-content table tbody tr:hover {
    background: #f0faf4;
}

/* Responsive tables */
@media (max-width: 600px) {
    .article-content table {
        font-size: 0.85rem;
    }

    .article-content table th,
    .article-content table td {
        padding: 10px 12px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tagline {
        display: none;
    }

    .article-content {
        padding: 28px 24px;
    }

    .article-header h1 {
        font-size: 1.6rem;
    }
}

@media (min-width: 768px) {
    textarea {
        min-height: 350px;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 1rem;
    }

    textarea {
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px 12px;
    }

    header {
        padding: 10px 12px;
        margin-bottom: 12px;
        overflow-x: hidden;
    }

    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
    }

    h1 {
        font-size: 1.1rem;
    }

    .nav-links {
        margin-left: 0;
        gap: 16px;
    }

    .input-section {
        padding: 16px;
    }

    .content-wrapper {
        gap: 15px;
        margin-bottom: 20px;
    }

    .summary-bar {
        padding: 14px 16px 12px;
    }

    .primary-stats {
        gap: 30px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .primary-label {
        font-size: 0.75rem;
        margin-bottom: 5px;
    }

    .primary-value {
        font-size: 2.2rem;
    }

    .secondary-stats {
        gap: 15px;
    }

    .secondary-label {
        font-size: 0.7rem;
    }

    .secondary-value {
        font-size: 0.9rem;
    }

    .utility-buttons {
        gap: 8px;
    }

    .utility-btn {
        min-width: calc(50% - 4px);
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    textarea {
        min-height: 250px;
        padding: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .seo-section {
        padding: 20px;
        margin-top: 15px;
    }

    .seo-section h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .seo-section h3 {
        font-size: 1.2rem;
        margin-top: 20px;
        margin-bottom: 12px;
    }

    .seo-section p {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    /* Blog responsive */
    .blog-intro {
        margin-bottom: 28px;
        padding-bottom: 20px;
    }

    .blog-intro h1 {
        font-size: 1.4rem;
    }

    .post-card {
        padding: 20px;
    }

    .post-card h2 {
        font-size: 1.35rem;
    }

    .post-summary {
        font-size: 0.95rem;
    }

    .article-content {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .article-header {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .article-header h1 {
        font-size: 1.35rem;
        line-height: 1.4;
    }

    .article-content h2 {
        font-size: 1.2rem;
        margin-top: 28px;
    }

    .article-content h3 {
        font-size: 1.05rem;
        margin-top: 20px;
    }

    .article-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

/* Category Badge */
.category-badge {
    background: #f0faf4;
    color: #27ae60;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-badge:hover {
    background: #27ae60;
    color: white;
}


/* Breadcrumb */
.breadcrumb {
    color: #7c8a96;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: #27ae60;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #c5cdd5;
}

/* Post count */
.post-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5a6c7d;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 12px;
    padding: 6px 12px;
    background: #f8faf9;
    border: 1px solid #e8f0eb;
    border-radius: 20px;
}

.post-count::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #27ae60;
    border-radius: 50%;
}

/* Category grid (for terms page) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06), 0 12px 28px rgba(0, 0, 0, 0.1);
}

.category-card h2 {
    color: #1a252f;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.category-card .category-description {
    color: #5a6c7d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.category-count {
    color: #7c8a96;
    font-size: 0.875rem;
}

/* Mobile: smaller category badges */
@media (max-width: 480px) {
    .category-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    textarea {
        border: 1px solid #e1e8ed;
    }
}
