/* ============================================================
   instagram-shortcode-to-date.css
   Page-specific styles extracted from inline <style> block
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Skip to content ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #667eea;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    text-decoration: none;
    border-radius: 0 0 6px 0;
}
.skip-link:focus { top: 0; }

body {
    margin: 0; padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #1a202c;
    line-height: 1.6;
}

/* ── Page wrapper ── */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; }

/* ── Breadcrumb ── */
.breadcrumb { font-size: 13px; color: #888; margin-bottom: 20px; padding-top: 24px; }
.breadcrumb a { color: #888; text-decoration: none; }
.breadcrumb a:hover { color: #E1306C; }
.breadcrumb span { margin: 0 6px; }

/* ── Hero grid — single centered column ── */
.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 0 40px;
    gap: 32px;
}

.page-header {
    text-align: center;
    max-width: 720px;
    width: 100%;
}

.hero-badges {
    justify-content: center;
}

.tool-section {
    max-width: 640px;
    width: 100%;
}

@media (max-width: 768px) {
    .hero-grid { padding: 28px 0 24px; gap: 24px; }
}

.page-header h1 {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    color: #1a202c;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.4px;
}
.page-header .subtitle {
    font-size: 16px;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 20px;
}
.page-header .meta-row { display: none; }

/* ── Feature badges ── */
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.hero-badge .badge-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.badge-dot-green  { background: #22c55e; }
.badge-dot-purple { background: #667eea; }
.badge-dot-pink   { background: #E1306C; }
.badge-dot-blue   { background: #3b82f6; }

/* ── Tool card ── */
.tool-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.tool-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tool-input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #1a202c;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 14px;
}
/* Accessible focus — visible ring instead of outline:none */
.tool-input:focus {
    outline: 2px solid transparent;
    border-color: #E1306C;
    box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.2);
}
.tool-input::placeholder { color: #aaa; }

.btn-convert {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #E1306C 0%, #833AB4 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}
.btn-convert:hover { opacity: 0.92; }
.btn-convert:active { transform: scale(0.99); }
.btn-convert:focus-visible {
    outline: 2px solid #833AB4;
    outline-offset: 2px;
}

/* ── Result panel ── */
.result-panel {
    display: none;
    margin-top: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.result-panel.visible { display: block; }
.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}
.result-row:last-child { border-bottom: none; }
.result-row .r-label { font-size: 12px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.5px; min-width: 110px; }
.result-row .r-value { font-size: 15px; font-weight: 600; color: #1a202c; word-break: break-all; }
.result-row .r-value.highlight { color: #E1306C; font-size: 17px; }
.copy-btn {
    background: #f0f0f0;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    color: #555;
    white-space: nowrap;
    transition: background 0.2s;
}
.copy-btn:hover { background: #e2e8f0; }
.copy-btn:focus-visible { outline: 2px solid #667eea; outline-offset: 2px; }

/* ── Quick examples ── */
.examples-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.example-pill {
    background: #fff0f5;
    border: 1px solid #ffc0d0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: #E1306C;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: background 0.2s;
}
.example-pill:hover { background: #ffe0eb; }
.example-pill:focus-visible { outline: 2px solid #E1306C; outline-offset: 2px; }

/* ── Content article ── */
.content-article {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 36px 32px;
    margin-bottom: 32px;
}
.content-article h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin: 32px 0 12px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}
.content-article h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.content-article h3 { font-size: 16px; font-weight: 600; color: #333; margin: 20px 0 8px; }
.content-article p { color: #444; line-height: 1.85; margin-bottom: 14px; font-size: 15px; }
.content-article ul, .content-article ol { margin: 0 0 16px 22px; }
.content-article li { color: #444; line-height: 1.8; margin-bottom: 6px; font-size: 15px; }
.content-article code {
    background: #f4f4f8;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #c7254e;
}
.content-article a { color: #E1306C; text-decoration: none; }
.content-article a:hover { text-decoration: underline; }

/* ── Code blocks ── */
.code-block { background: #1e1e2e; border-radius: 10px; overflow: hidden; margin: 18px 0; }
.code-block-header {
    background: #2a2a3e;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3a3a50;
}
.code-block-header .lang { color: #89b4fa; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.code-block-header .copy-code-btn {
    background: #313244;
    color: #cdd6f4;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.code-block-header .copy-code-btn:hover { background: #45475a; }
.code-block-header .copy-code-btn:focus-visible { outline: 2px solid #89b4fa; outline-offset: 2px; }
.code-block pre { margin: 0; padding: 20px 18px; overflow-x: auto; }
.code-block code {
    background: transparent;
    padding: 0;
    color: #cdd6f4;
    font-family: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.7;
}

/* ── Callouts ── */
.callout {
    border-radius: 8px;
    padding: 16px 20px;
    margin: 18px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.callout.info { background: #eff6ff; border-left: 4px solid #3b82f6; }
.callout.tip  { background: #f0fdf4; border-left: 4px solid #22c55e; }
.callout.warn { background: #fffbeb; border-left: 4px solid #f59e0b; }
.callout .icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.callout p { margin: 0; font-size: 14px; color: #374151; line-height: 1.7; }

/* ── Data table ── */
.data-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.data-table thead tr { background: linear-gradient(135deg, #E1306C, #833AB4); color: white; }
.data-table th { padding: 12px 16px; text-align: left; font-weight: 600; }
.data-table td { padding: 11px 16px; border-bottom: 1px solid #f0f0f0; color: #444; }
.data-table tbody tr:hover { background: #fafafa; }
.data-table code { font-size: 12px; }

/* ── FAQ ── */
.faq-section { margin-bottom: 32px; }
.faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 22px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-question:hover { background: #fafafa; }
.faq-question:focus-visible { outline: 2px solid #667eea; outline-offset: -2px; }
.faq-question .faq-icon { font-size: 18px; color: #E1306C; flex-shrink: 0; transition: transform 0.2s; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 22px 18px; font-size: 14px; color: #555; line-height: 1.8; }
.faq-answer.open { display: block; }

/* ── Related tools ── */
.related-tools { margin-bottom: 32px; }
.related-tools h2 { font-size: 18px; font-weight: 700; color: #1a202c; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.related-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    color: #1a202c;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    display: block;
}
.related-card:hover { border-color: #E1306C; box-shadow: 0 4px 12px rgba(225,48,108,0.12); transform: translateY(-2px); }
.related-card:focus-visible { outline: 2px solid #E1306C; outline-offset: 2px; }
.related-card .rc-icon { font-size: 22px; margin-bottom: 8px; }
.related-card .rc-name { font-size: 14px; font-weight: 600; color: #1a202c; margin-bottom: 4px; }
.related-card .rc-desc { font-size: 12px; color: #888; line-height: 1.5; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .content-article { padding: 24px 18px; }
    .tool-card { padding: 20px 16px; }
    .result-row { flex-direction: column; align-items: flex-start; }
}
