/* ═══════════════════════════════════
       CSS VARIABLES & RESET
    ═══════════════════════════════════ */
:root {
    --bg: #fff5e1;
    --surface: #ffffff;
    --surface2: #ffeaa7;
    --border: #000000;
    --border-width: 3px;
    --accent: #ff4757;
    --accent2: #1e90ff;
    --accent3: #2ed573;
    --text: #000000;
    --text-muted: #2f3542;
    --text-dim: #57606f;
    --success: #2ed573;
    --success-light: #e6f7ec;
    --accent-light: #ffebe9;
    --warning: #ffa502;
    --radius: 0px;
    --radius-lg: 0px;
    --shadow: 4px 4px 0px #000000;
    --shadow-hover: 6px 6px 0px #000000;
    --shadow-accent: 4px 4px 0px var(--accent);
    --grid-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --bg: #121212;
    --surface: #1e1e1e;
    --surface2: #2d2d2d;
    --border: #ffffff;
    --text: #ffffff;
    --text-muted: #e0e0e0;
    --text-dim: #a0a0a0;
    --success-light: #0d2b18;
    --accent-light: #3a1513;
    --shadow: 4px 4px 0px #ffffff;
    --shadow-hover: 6px 6px 0px #ffffff;
    --grid-color: rgba(255, 255, 255, 0.05);
}

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

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* ═══════════════════════════════════
       BACKGROUND GRID
    ═══════════════════════════════════ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(var(--grid-color) 2px, transparent 2px), linear-gradient(90deg, var(--grid-color) 2px, transparent 2px);
    background-size: 32px 32px;
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════
       HEADER
    ═══════════════════════════════════ */
header {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 52px 20px 36px;
}

.badge {
    display: inline-block;
    background: var(--surface2);
    border: var(--border-width) solid var(--border);
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 0px;
    margin-bottom: 20px;
    box-shadow: 2px 2px 0px var(--border);
}

h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    color: var(--text);
    max-width: 640px;
    margin: 0 auto 16px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
    font-weight: 300;
}

/* ═══════════════════════════════════
       MAIN TOOL CONTAINER
    ═══════════════════════════════════ */
main {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px 64px;
}

/* ═══════════════════════════════════
       TOOL CARD
    ═══════════════════════════════════ */
.tool-card {
    background: var(--surface);
    border: var(--border-width) solid var(--border);
    border-radius: 0px;
    padding: 28px;
    box-shadow: var(--shadow);
    border: var(--border-width) solid var(--border);
}

/* ═══════════════════════════════════
       SORT OPTIONS
    ═══════════════════════════════════ */
.options-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.sort-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.sort-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--surface2);
    border: var(--border-width) solid var(--border);
    border-radius: 0px;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.sort-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

.sort-btn.active {
    background: rgba(79, 142, 255, 0.12);
    border-color: var(--accent);
    color: var(--accent);
}

.sort-btn .icon {
    font-size: 14px;
    line-height: 1;
}

/* ═══════════════════════════════════
       EXTRA OPTIONS ROW
    ═══════════════════════════════════ */
.extra-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: var(--surface2);
    border: var(--border-width) solid var(--border);
    border-radius: 0px;
}

.toggle-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.toggle-wrap input[type="checkbox"] {
    display: none;
}

.toggle {
    width: 34px;
    height: 18px;
    background: var(--bg);
    border: var(--border-width) solid var(--border);
    border-radius: 0px;
    position: relative;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.toggle::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 8px;
    height: 8px;
    background: var(--border);
    border-radius: 0px;
    transition: left 0.2s, background 0.2s;
}

.toggle-wrap input:checked+.toggle {
    background: var(--accent);
}

.toggle-wrap input:checked+.toggle::after {
    left: 18px;
    background: white;
}

.toggle-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════
       TWO-COLUMN EDITOR LAYOUT
    ═══════════════════════════════════ */
.editor-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

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

.panel {
    display: flex;
    flex-direction: column;
}

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

.panel-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.panel-counter {
    font-size: 12px;
    color: var(--text-dim);
}

textarea {
    border: var(--border-width) solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 0px;
    width: 100%;
    min-height: 260px;
    background: var(--bg);
    border: var(--border-width) solid var(--border);
    border-radius: 0px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    padding: 14px 16px;
    resize: vertical;
    transition: border-color 0.2s;
    outline: none;
    -webkit-overflow-scrolling: touch;
}

textarea:focus {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
    outline: none;
}

textarea::placeholder,
input::placeholder {
    color: var(--text-dim);
}

/* output textarea */
#output {
    background: rgba(79, 142, 255, 0.04);
    border-color: rgba(79, 142, 255, 0.2);
    color: var(--text);
}

/* ═══════════════════════════════════
       ACTION BUTTONS
    ═══════════════════════════════════ */
.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--accent);
    border: var(--border-width) solid var(--border);
    box-shadow: var(--shadow);
    color: white;
    font-weight: 700;
    color: white;
    border: none;
    border-radius: 0px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.18s, transform 0.15s;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary:active,
.btn-secondary:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px var(--border);
}

.btn-secondary {
    border: var(--border-width) solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 0px;
    background: var(--surface2);
    color: var(--text);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--surface2);
    color: var(--text-muted);
    border: var(--border-width) solid var(--border);
    border-radius: 0px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}

.btn-secondary:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border);
    color: var(--text);
}
.btn-copy:hover {
    border-color: var(--accent3);
    color: var(--accent3);
}

.btn-copy.copied {
    border-color: var(--success);
    color: var(--success);
}

/* ═══════════════════════════════════
       STATS BAR
    ═══════════════════════════════════ */
.stats-bar {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: var(--surface2);
    border-radius: 0px;
    margin-top: 16px;
}

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

.stat-value {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 12px;
    color: var(--text-dim);
}

/* ═══════════════════════════════════
       SEO CONTENT SECTIONS
    ═══════════════════════════════════ */
.seo-sections {
    margin-top: 56px;
}

.seo-section {
    margin-bottom: 40px;
}

.seo-section h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    position: relative;
    padding-left: 16px;
}

.seo-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(var(--accent), var(--accent2));
    border-radius: 2px;
}

.seo-section h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 20px 0 8px;
}

.seo-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 12px;
}

.seo-section ul {
    list-style: none;
    padding: 0;
}

.seo-section ul li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
}

.seo-section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 12px;
}

/* How-to steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.step {
    border: var(--border-width) solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 0px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    background: var(--surface);
    border: var(--border-width) solid var(--border);
    border-radius: 0px;
}

.step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--accent);
    border: var(--border-width) solid var(--border);
    box-shadow: var(--shadow);
    color: white;
    font-weight: 700;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: white;
}

.step-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.step-text strong {
    color: var(--text);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.faq-item {
    border: var(--border-width) solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 0px;
    margin-bottom: 12px;
    border: var(--border-width) solid var(--border);
    border-radius: 0px;
    overflow: hidden;
}

.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--surface);
    border: none;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.faq-q:hover {
    background: var(--surface2);
}

.faq-q .chevron {
    color: var(--text-dim);
    transition: transform 0.2s;
    font-size: 12px;
}

.faq-item.open .faq-q .chevron {
    transform: rotate(180deg);
}

.faq-a {
    display: none;
    padding: 0 18px 14px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.faq-item.open .faq-a {
    display: block;
}

/* Use cases grid */
.use-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.use-card {
    border: var(--border-width) solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 0px;
    padding: 16px;
    background: var(--surface);
    border: var(--border-width) solid var(--border);
    border-radius: 0px;
}

.use-card .uc-icon {
    font-size: 22px;
    margin-bottom: 8px;
}

.use-card .uc-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

.use-card .uc-desc {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}

/* ═══════════════════════════════════
       BREADCRUMB
    ═══════════════════════════════════ */
.breadcrumb {
    position: relative;
    z-index: 10;
    padding: 12px 16px 0;
    max-width: 900px;
    margin: 0 auto;
}

.breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-dim);
}

.breadcrumb a {
    color: var(--text-dim);
    text-decoration: none;
}

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

.breadcrumb span {
    color: var(--text-dim);
}

/* ═══════════════════════════════════
       FOOTER
    ═══════════════════════════════════ */
.site-footer {
    position: relative;
    z-index: 10;
    background: var(--surface);
    border-top: var(--border-width) solid var(--border);
    padding: 48px 20px 28px;
    color: var(--text);
    font-size: 14px;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
    margin-bottom: 4px;
}

.footer-col a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

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

.footer-col p {
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: var(--text-dim);
}

.footer-bottom a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.footer-bottom a:hover {
    color: var(--accent);
}

@media (max-width: 640px) {
    .site-footer {
        padding: 36px 16px 24px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .footer-col {
        align-items: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* ═══════════════════════════════════
       TOAST
    ═══════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--success);
    color: white;
    padding: 10px 22px;
    border-radius: 0px;
    font-size: 13px;
    font-weight: 500;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════
       SEPARATOR / PAGE DIVIDER
    ═══════════════════════════════════ */
.divider {
    border: none;
    border-top: var(--border-width) solid var(--border);
    margin: 40px 0;
}

/* ═══════════════════════════════════
       RESPONSIVE
    ═══════════════════════════════════ */
@media (max-width: 500px) {
    .sort-btn {
        padding: 6px 10px;
        font-size: 11px;
        gap: 4px;
    }

    .sort-btn span.label {
        display: inline;
    }

    .stats-bar {
        gap: 14px;
    }
}







/* ═══════════════════════════════════
       NAV
    ═══════════════════════════════════ */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: var(--border-width) solid var(--border);
    background: var(--surface);
    box-shadow: 0 4px 0px var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
    gap: 12px;
}

.nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.01em;
}

.nav-logo:hover {
    color: var(--accent);
}

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

.nav-links a {
    padding: 6px 12px;
    border-radius: 0px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s;
    border: var(--border-width) solid transparent;
}

.nav-links a:hover {
    background: var(--surface2);
    color: var(--text);
}

.nav-links a.active {
    background: rgba(79, 142, 255, 0.12);
    color: var(--accent);
    font-weight: 700;
    border-color: var(--accent);
}

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

.theme-toggle,
.nav-toggle {
    background: var(--surface2);
    border: var(--border-width) solid var(--border);
    color: var(--text);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.1s;
    box-shadow: 2px 2px 0px var(--border);
}

.theme-toggle:hover,
.nav-toggle:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--border);
}

.theme-toggle:active,
.nav-toggle:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--border);
}

.nav-toggle {
    display: none;
}

/* Nav Dropdowns */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border: var(--border-width) solid transparent;
    transition: all 0.15s;
}

.nav-dropdown-btn:hover,
.nav-dropdown-btn.active {
    background: var(--surface2);
    color: var(--text);
    border-color: var(--border);
    box-shadow: 2px 2px 0px var(--border);
    transform: translate(-1px, -1px);
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--surface);
    border: var(--border-width) solid var(--border);
    box-shadow: 4px 4px 0px var(--border);
    z-index: 100;
    min-width: 220px;
    flex-direction: column;
    padding: 4px 0;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: flex;
}

.nav-dropdown-content a {
    padding: 8px 16px !important;
    font-size: 13px !important;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background 0.15s, color 0.15s;
    text-align: left;
}

.nav-dropdown-content a:hover,
.nav-dropdown-content a.active {
    background: var(--surface2) !important;
    color: var(--text) !important;
}

.nav-dropdown-content a i {
    display: inline-block !important;
    width: 16px;
    text-align: center;
}

/* Mobile Nav Dropdowns and Drawer */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: var(--border-width) solid var(--border);
        padding: 16px;
        gap: 8px;
        box-shadow: 0 4px 0px var(--border);
        z-index: 49;
    }

    .nav-links.open {
        display: flex;
    }

    /* Display dropdown links flat in mobile drawer */
    .nav-dropdown-btn {
        display: none;
    }

    .nav-dropdown {
        display: block;
        width: 100%;
    }

    .nav-dropdown-content {
        display: flex !important;
        position: static;
        border: none;
        box-shadow: none;
        width: 100%;
        padding: 0;
        gap: 8px;
    }

    .nav-dropdown-content a {
        padding: 10px 14px !important;
        border: var(--border-width) solid transparent !important;
        background: transparent !important;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nav-dropdown-content a:hover,
    .nav-dropdown-content a.active {
        border-color: var(--border) !important;
        background: var(--surface2) !important;
        box-shadow: 2px 2px 0px var(--border) !important;
        transform: translate(-1px, -1px) !important;
    }

    /* Regular single nav links (like Ejercicios) in mobile drawer */
    .nav-links>a {
        width: 100%;
        padding: 10px 14px !important;
        font-size: 13px !important;
        border: var(--border-width) solid transparent;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nav-links>a:hover,
    .nav-links>a.active {
        border-color: var(--border);
        background: var(--surface2);
        box-shadow: 2px 2px 0px var(--border);
        transform: translate(-1px, -1px);
    }
}

/* ═══════════════════════════════════
       EXERCISES SECTION STYLES
    ═══════════════════════════════════ */
.exercise-box {
    background: var(--surface);
    border: var(--border-width) solid var(--border);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 24px;
    border-radius: 0px;
    transition: all 0.2s ease;
}

.exercise-box h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin-top: 0;
    margin-bottom: 8px;
}

.word-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.chip {
    background: var(--surface2);
    border: 2px solid var(--border);
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    border-radius: 0px;
    box-shadow: 2px 2px 0px var(--border);
}

.exercise-interactive {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.exercise-input {
    width: 100%;
    padding: 10px 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    border: var(--border-width) solid var(--border);
    background: var(--surface);
    border-radius: 0px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.exercise-input:focus {
    border-color: var(--accent);
}

.exercise-actions {
    display: flex;
    gap: 10px;
}

.exercise-actions button {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.feedback-area {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border: 2px solid transparent;
    margin-top: 4px;
    display: none;
}

.feedback-area.correct {
    display: block;
    background: var(--success-light);
    border-color: var(--success);
    color: var(--text);
}

.feedback-area.incorrect {
    display: block;
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--text);
}

/* ═══════════════════════════════════
           SUB-PAGE & ARTICLE STYLING
        ═══════════════════════════════════ */
.page-header {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px 20px;
    position: relative;
    z-index: 10;
}

.page-h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    line-height: 1.1;
    color: var(--text);
    margin: 0 auto 12px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.page-main {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px 64px;
}

/* Neobrutalist Article Card Wrapper */
.seo-sections {
    background: var(--surface);
    border: var(--border-width) solid var(--border);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.seo-section h2 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.seo-section h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    margin-top: 20px;
    margin-bottom: 12px;
}

.seo-section p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.seo-section p strong {
    color: var(--text);
    font-weight: 700;
}

.seo-section ul,
.seo-section ol {
    margin-bottom: 16px;
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seo-section li {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.seo-section li strong {
    color: var(--text);
}

.divider {
    border: none;
    border-top: var(--border-width) solid var(--border);
    margin: 10px 0;
    opacity: 1;
}

.highlight-box {
    background: var(--surface2);
    border: var(--border-width) solid var(--border);
    padding: 20px;
    margin: 20px 0;
    box-shadow: 3px 3px 0px var(--border);
}

.highlight-box p {
    margin-bottom: 0;
    font-size: 14px;
    color: var(--text);
}

/* Breadcrumbs */
.breadcrumb {
    max-width: 900px;
    margin: 24px auto 0;
    padding: 0 16px;
    font-size: 13px;
    color: var(--text-dim);
    position: relative;
    z-index: 10;
}

.breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.breadcrumb a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-dim);
    font-weight: 500;
}

/* Interactive Exercise Box Container */
.exercise-box {
    background: var(--surface);
    border: var(--border-width) solid var(--border);
    padding: 24px;
    margin-top: 24px;
    margin-bottom: 24px;
    box-shadow: 4px 4px 0px var(--border);
    text-align: left;
}

.exercise-box h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text);
    margin-top: 0;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .seo-sections {
        padding: 24px 20px;
        gap: 24px;
    }

    .page-header {
        padding: 30px 16px 16px;
    }
}

/* Info Grid & Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.info-card {
    background: var(--surface);
    border: var(--border-width) solid var(--border);
    padding: 20px;
    box-shadow: 3px 3px 0px var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.ic-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--surface2);
    border: 2px solid var(--border);
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 4px;
}

.ic-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: var(--text);
}

.ic-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Related Tools Grid & Cards */
.related-tools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.related-card {
    background: var(--surface);
    border: var(--border-width) solid var(--border);
    padding: 16px;
    box-shadow: 3px 3px 0px var(--border);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.15s ease-in-out;
    color: var(--text);
    text-align: left;
}

.related-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--border);
    border-color: var(--accent);
}

.rc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--surface2);
    border: 2px solid var(--border);
    color: var(--accent2);
    font-size: 15px;
    margin-bottom: 2px;
}

.rc-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: var(--text);
}

.rc-desc {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-dim);
}

/* Mobile Readability & Legibility Adjustments */
@media (max-width: 640px) {
    textarea {
        font-size: 16px !important;
        font-weight: 400 !important;
        line-height: 1.5 !important;
    }

    .exercise-input,
    .form-control {
        font-size: 16px !important;
        font-weight: 400 !important;
    }

    .seo-section p,
    .highlight-box p,
    .ic-desc,
    .rc-desc {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .seo-section li {
        font-size: 13.5px !important;
        line-height: 1.5 !important;
    }

    h1,
    .page-h1 {
        font-size: 1.5rem !important;
        line-height: 1.15 !important;
    }

    .seo-section h2 {
        font-size: 1.25rem !important;
        line-height: 1.25 !important;
    }

    .seo-section h3,
    .exercise-box h3 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }

    .stats-bar .stat-value {
        font-size: 1.1rem !important;
    }

    .stats-bar .stat-label {
        font-size: 10px !important;
    }

    .actions button {
        font-size: 13.5px !important;
        padding: 10px 16px !important;
    }
}