/* ============================================================
   RelocateLab — Global Guides Article Style
   LTR · uses variables from global.css
   ============================================================ */

/* ---- Layout wrapper ---- */
.guide-article-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 24px 64px;
}

/* ---- Breadcrumb ---- */
.guide-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.guide-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.guide-breadcrumb a:hover { color: var(--green); }
.guide-breadcrumb .sep { opacity: 0.4; }

/* ---- Article hero ---- */
.guide-article-hero { margin-bottom: 40px; }

.guide-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 16px;
}

.guide-cover {
    width: 100%;
    height: 240px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0d2535 0%, #0f3020 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    letter-spacing: 10px;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    overflow: hidden;
}

.guide-article-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 20px;
}

.guide-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--green);
}
.guide-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--green-light, rgba(46,158,94,0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.guide-meta-author { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.guide-meta-details { font-size: 0.78rem; color: var(--text-muted); }

/* ---- Stats strip ---- */
.guide-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: var(--bg-light, #f0ede8);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
}
html[data-theme="dark"] .guide-stats-strip {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}
.guide-stat-item { text-align: center; }
.guide-stat-number {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--green);
    line-height: 1;
}
.guide-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 5px;
    line-height: 1.35;
}

/* ---- Share bar ---- */
.guide-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 0;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.guide-share-label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.guide-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
}
.guide-share-btn:hover { opacity: 0.82; }
.guide-share-wa { background: #25D366; color: #fff; }
.guide-share-x  { background: #000; color: #fff; }
html[data-theme="dark"] .guide-share-x { background: #fff; color: #000; }

/* ---- Article body ---- */
.guide-article-body { line-height: 1.78; font-size: 1rem; }

.guide-article-body h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text);
    margin: 56px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.01em;
}
.guide-article-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 10px;
}
.guide-article-body p {
    margin-bottom: 16px;
    color: var(--text);
}
.guide-article-body ul,
.guide-article-body ol {
    margin: 8px 0 16px 24px;
    padding: 0;
}
.guide-article-body li { margin-bottom: 8px; line-height: 1.72; }
.guide-article-body strong { color: var(--text); font-weight: 600; }

/* ---- Callout boxes (replaces tip-box / note-box) ---- */
.callout {
    background: var(--bg-light, #f0ede8);
    border-left: 4px solid var(--green);
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 24px 0;
}
html[data-theme="dark"] .callout {
    background: rgba(255,255,255,0.04);
    border-left-color: var(--green);
}
.callout-tip  {
    border-left-color: var(--green);
    background: rgba(46,158,94,0.07);
}
.callout-note {
    border-left-color: #3b82f6;
    background: #eef2ff;
}
html[data-theme="dark"] .callout-note {
    background: rgba(59,130,246,0.08);
}
.callout-warn {
    border-left-color: #d97706;
    background: #fef9e3;
}
html[data-theme="dark"] .callout-warn {
    background: rgba(217,119,6,0.08);
}
.callout-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 8px;
    display: block;
}
.callout-tip  .callout-title { color: var(--green); }
.callout-note .callout-title { color: #1e40af; }
html[data-theme="dark"] .callout-note .callout-title { color: #93c5fd; }
.callout-warn .callout-title { color: #b45309; }
.callout p { margin-bottom: 0; font-size: 0.95rem; }
.callout ul { margin: 8px 0 0 18px; }

/* ---- City grid (2-col layout) ---- */
.city-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}
@media (max-width: 640px) { .city-grid { grid-template-columns: 1fr; } }

.city-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
html[data-theme="dark"] .city-card { box-shadow: none; }

.city-header {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-light, #f0ede8);
    color: var(--text);
}
html[data-theme="dark"] .city-header { background: rgba(255,255,255,0.05); }

/* Per-city accent colors preserved */
.city-header.barcelona { background: #ffedea; color: #b91c1c; }
.city-header.madrid    { background: #eaf4ff; color: #075985; }
.city-header.paris     { background: #e8eeff; color: #002395; }
.city-header.lyon      { background: #fff0e8; color: #9a3412; }
.city-header.bordeaux  { background: #fdf2f8; color: #831843; }
.city-header.toulouse  { background: #fff7ed; color: #9a3412; }
.city-header.berlin    { background: #f0f0f0; color: #1a1a1a; }
.city-header.munich    { background: #fff8e1; color: #7b4f00; }
.city-header.hamburg   { background: #e8f4ff; color: #003d7a; }
.city-header.frankfurt { background: #fff0f0; color: #7a0000; }

.city-body { padding: 14px 18px; background: var(--white, #fff); }
html[data-theme="dark"] .city-body { background: var(--white, #162436); }
.city-body p { font-size: 0.9rem; margin-bottom: 10px; }

/* ---- Cost / data tables ---- */
.cost-table,
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 8px;
    font-size: 0.875rem;
}
.cost-table th, .cost-table td,
.data-table th, .data-table td {
    border-bottom: 1px solid var(--border);
    padding: 9px 6px;
    text-align: left;
    vertical-align: top;
    color: var(--text);
}
.cost-table th, .data-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.78rem;
}
.cost-table tr.highlight td { background: rgba(46,158,94,0.07); font-weight: 600; }

/* ---- Process steps (numbered) ---- */
.process-steps { counter-reset: step; list-style: none; margin: 16px 0 24px; padding: 0; }
.process-steps li {
    counter-increment: step;
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    align-items: flex-start;
}
.process-steps li::before {
    content: counter(step);
    background: var(--green);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- Affiliate / N26 box ---- */
.affiliate-box {
    border: 1px solid rgba(46,158,94,0.25);
    border-radius: 16px;
    padding: 20px 22px;
    background: rgba(46,158,94,0.04);
    margin: 32px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
html[data-theme="dark"] .affiliate-box {
    background: rgba(46,158,94,0.07);
    border-color: rgba(46,158,94,0.2);
}
.affiliate-box-icon { font-size: 2rem; flex-shrink: 0; }
.affiliate-box h3 { margin: 0 0 6px; font-size: 1rem; color: var(--text); }
.affiliate-box p { margin: 0 0 12px; font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }
.affiliate-box a.aff-btn {
    display: inline-block;
    background: var(--green);
    color: #fff;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
}
.affiliate-box a.aff-btn:hover { background: var(--green-dark, #1F7A47); }
.affiliate-box .aff-disclaimer { font-size: 0.72rem; color: var(--text-muted); margin: 8px 0 0; opacity: 0.75; }

/* ---- Community box ---- */
.community-box {
    background: var(--bg-light, #f0ede8);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 22px;
    margin: 24px 0;
}
html[data-theme="dark"] .community-box { background: rgba(255,255,255,0.04); }
.community-box h3 { margin-top: 0; }

/* ---- Wise / generic info box ---- */
.wise-box {
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: 14px;
    padding: 18px 20px;
    background: rgba(59,130,246,0.04);
    margin: 24px 0;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
html[data-theme="dark"] .wise-box { background: rgba(59,130,246,0.07); }
.wise-box-icon { font-size: 1.8rem; flex-shrink: 0; }
.wise-box h3 { margin: 0 0 5px; font-size: 0.95rem; color: var(--text); }
.wise-box p { margin: 0 0 10px; font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.wise-box a.wise-btn {
    display: inline-block;
    background: #3b82f6;
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

/* ---- Footer note / disclaimer ---- */
.guide-disclaimer {
    background: var(--bg-light, #f0ede8);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 40px;
}
html[data-theme="dark"] .guide-disclaimer { background: rgba(255,255,255,0.04); }

/* ---- Article footer ---- */
.guide-article-footer {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.guide-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}
.guide-tag-pill {
    background: var(--bg-light, #f0ede8);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 4px 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
html[data-theme="dark"] .guide-tag-pill { background: rgba(255,255,255,0.05); }

.guide-related-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}
.guide-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
@media (max-width: 600px) { .guide-related-grid { grid-template-columns: 1fr; } }
.guide-related-card {
    background: var(--white, #fff);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.18s, transform 0.18s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    min-width: 0;
}
html[data-theme="dark"] .guide-related-card {
    background: rgba(255,255,255,0.04);
    box-shadow: none;
}
.guide-related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); transform: translateY(-2px); }
.guide-related-emoji { font-size: 1.5rem; flex-shrink: 0; }
.guide-related-label { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 2px; }
.guide-related-title { font-size: 0.88rem; font-weight: 700; line-height: 1.35; }
.guide-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-size: 0.92rem;
    font-weight: 600;
    margin-top: 12px;
    text-decoration: none;
}
.guide-back-link:hover { text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .guide-stats-strip { grid-template-columns: repeat(2, 1fr); }
    .guide-cover { height: 180px; font-size: 2.8rem; letter-spacing: 6px; }
    .guide-article-wrap { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 480px) {
    .guide-article-body h2 { font-size: 1.25rem; }
    .affiliate-box { flex-direction: column; }
}
