@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #1a73e8;
    --primary-hover: #1765cc;
    --bg-color: #fdfdfd;
    --card-bg: #ffffff;
    --text: #f0ece4;
    --text-color: #202124;
    --secondary-text: #5f6368;
    --border-color: #e0e0e0;
    --error-color: #d93025;
    --success-color: #1e8e3e;
    --accent: #e8d5a0;
    --shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    --border-strong: rgba(255, 255, 255, 0.16);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background: rgba(10, 10, 10, 0.85);
    padding: 1rem 5%;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-mark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--secondary-text);
    font-size: 0.9rem;
    font-weight: 500;
}

nav a:hover {
    color: var(--primary-color);
}

.main-content {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 20px;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.subtitle {
    color: var(--secondary-text);
    font-size: 1.1rem;
}

.converter-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="text"] {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #f8f9fa;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

.message {
    font-size: 0.85rem;
    margin-top: 0.75rem;
    min-height: 1.2rem;
}

.error {
    color: var(--error-color);
}

.success {
    color: var(--success-color);
    font-weight: 600;
}

#resultSection {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

#resultSection.visible {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-item {
    margin-bottom: 1.5rem;
}

.code-container {
    background: #202124;
    color: #e8eaed;
    padding: 1.2rem;
    /* Increased padding slightly */
    padding-right: 3rem;
    /* Space for the icon */
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    overflow: hidden;
    /* Prevent text from underflowing icon badly */
    white-space: nowrap;
    /* Keep it one line and overflow-x */
    overflow-x: auto;
    margin-top: 0.5rem;
    border: 1px solid #3c4043;
    position: relative;
}

.in-box-copy {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #3c4043;
    border: none;
    color: #bdc1c6;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 5;
}

.in-box-copy:hover {
    background: #5f6368;
    color: white;
}

.in-box-copy svg {
    width: 16px;
    height: 16px;
}

/* Flash Notification */
.copy-flash {
    position: absolute;
    top: 50%;
    right: 45px;
    transform: translateY(-50%);
    background: var(--success-color);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    white-space: nowrap;
}

.copy-flash.show {
    opacity: 1;
    transform: translateY(-50%) translateX(-5px);
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--primary-hover);
}

.success-btn {
    background: var(--success-color) !important;
}

/* Info Sections */
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.info-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.info-card p,
.info-card ul {
    font-size: 0.95rem;
    color: var(--secondary-text);
}

.info-card ul {
    padding-left: 20px;
}

/* Ad Placeholders */
.ad-unit {
    background: #f1f3f4;
    border: 1px dashed #dadce0;
    color: #5f6368;
    text-align: center;
    padding: 20px;
    margin: 2rem 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 5% 1rem;
    text-align: center;
    background: white;
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-links a {
    margin: 0 1rem;
    text-decoration: none;
    color: var(--secondary-text);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    color: #bdc1c6;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    .info-section {
        grid-template-columns: 1fr;
    }

    .converter-card {
        padding: 1.5rem;
    }
}
/* ============================================================
   SEO ARTICLE SECTION
   ============================================================ */

.seo-article {
    background: #faf9f6;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 5rem 24px 0rem;
}

.seo-article-inner {
    max-width: 860px;
    margin: 0 auto;
    color: #1c1c1c;
}

/* Trust pills */
.trust-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f0ece2;
    border: 1px solid #ddd8cc;
    border-radius: 2rem;
    padding: 0.3rem 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.trust-pill::before {
    content: "✓";
    color: #6aaa82;
    font-size: 0.75rem;
}

/* Article headings */
.article-h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #111;
    margin-bottom: 1.25rem;
}

.article-h1 em {
    font-style: normal;
    color: var(--accent);
}

.seo-article-inner h2 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: #111;
    margin-top: 3rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--accent);
    letter-spacing: -0.02em;
}

.seo-article-inner h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    margin-top: 1.75rem;
    margin-bottom: 0.4rem;
}

.article-lead {
    font-size: 1.05rem;
    color: #444;
    font-style: italic;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin-bottom: 1.75rem;
    line-height: 1.75;
    font-family: var(--font-body);
}

.seo-article-inner p {
    font-family: var(--font-body);
    font-size: 0.97rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.seo-article-inner a {
    color: #1a5fad;
}

/* TOC */
.article-toc {
    background: #f0ece2;
    border-left: 4px solid var(--accent);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0 2.5rem;
    border-radius: 0 4px 4px 0;
}

.toc-title {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 0.65rem;
}

.article-toc ol {
    padding-left: 1.1rem;
}

.article-toc li {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.article-toc a {
    color: #1a5fad;
    text-decoration: none;
}

.article-toc a:hover {
    text-decoration: underline;
}

/* URL anatomy */
.url-anatomy {
    background: #1c1c1c;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 1.1rem 1.4rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0 1.25rem;
    line-height: 1.9;
    white-space: pre;
}

.url-anatomy strong {
    color: #f0ece2;
}

.url-label {
    display: block;
    color: #6aaa82;
    font-size: 0.7rem;
    margin-top: 0.1rem;
    white-space: normal;
}

code {
    font-family: var(--font-mono);
    font-size: 0.82em;
    background: rgba(0,0,0,0.07);
    padding: 1px 5px;
    border-radius: 3px;
    color: #333;
}

/* Steps */
.art-steps {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    counter-reset: art-step;
}

.art-steps li {
    counter-increment: art-step;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #444;
}

.art-steps li::before {
    content: counter(art-step);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: #1c1c1c;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: 50%;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Highlight box */
.art-highlight {
    background: #f5f0e4;
    border: 1px solid #ddd8cc;
    border-radius: 4px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #444;
    line-height: 1.7;
}

/* Feature list */
.art-feature-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
}

.art-feature-list li {
    padding: 0.6rem 0 0.6rem 1.6rem;
    border-bottom: 1px solid #ece8df;
    font-family: var(--font-body);
    font-size: 0.93rem;
    color: #444;
    position: relative;
}

.art-feature-list li:last-child { border-bottom: none; }

.art-feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #b07d2c;
    font-weight: 700;
}

/* Use case grid */
.art-use-case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #ddd8cc;
    border: 1px solid #ddd8cc;
    border-radius: 4px;
    overflow: hidden;
    margin: 1.25rem 0;
}

.art-use-case-card {
    background: #faf9f6;
    padding: 1.25rem 1.5rem;
}

.art-use-case-card h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.art-use-case-card p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Comparison table */
.art-table-wrap {
    overflow-x: auto;
    margin: 1.25rem 0;
}

.art-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.art-compare-table th {
    background: #1c1c1c;
    color: var(--accent);
    padding: 0.7rem 1rem;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.art-compare-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #ece8df;
    color: #444;
    vertical-align: top;
}

.art-compare-table tr:last-child td { border-bottom: none; }
.art-compare-table tr:nth-child(even) td { background: #f5f3ee; }

.chk { color: #6aaa82; font-weight: 700; }
.crs { color: #c0504d; font-weight: 700; }

/* CTA block */
.art-cta-block {
    background: #1c1c1c;
    padding: 2.25rem;
    border-radius: 4px;
    text-align: center;
    margin: 2.5rem 0;
}

.art-cta-block h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.art-cta-block p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.art-cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #1c1c1c;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 3px;
    transition: opacity 0.2s;
}

.art-cta-btn:hover {
    opacity: 0.85;
    text-decoration: none;
}

/* FAQ */
.art-faq-list {
    margin: 1.25rem 0;
}

.art-faq-item {
    border-bottom: 1px solid #ece8df;
    padding: 1.1rem 0;
}

.art-faq-item:last-child { border-bottom: none; }

.art-faq-q {
    font-family: var(--font-display);
    font-size: 0.97rem;
    font-weight: 700;
    color: #111 !important;
    margin-bottom: 0.35rem !important;
}

.art-faq-a {
    font-size: 0.92rem;
    color: #555 !important;
    line-height: 1.75;
}

/* Reference link */
.art-ref {
    margin-top: 2rem;
    font-size: 0.82rem !important;
    color: #999 !important;
    font-family: var(--font-body);
}

/* Responsive */
@media (max-width: 640px) {
    .seo-article { padding: 3rem 1.25rem 4rem; }
    .art-use-case-grid { grid-template-columns: 1fr; }
    .art-compare-table th,
    .art-compare-table td { padding: 0.55rem 0.7rem; font-size: 0.8rem; }
    .url-anatomy { font-size: 0.7rem; }
}