/* ==========================================================
   Shopee Help Page — Standalone CSS
   Brand: Calcularte (#198B86 teal, Montserrat/Inter)
   Based on elo7-help.css with additions for price tiers
   ========================================================== */

:root {
    --teal: #198B86;
    --teal-dark: #14706C;
    --teal-light: #e8f5f4;
    --teal-bg: #f0faf9;
    --gold: #E8A623;
    --gold-light: #fdf3dc;
    --pink: #DC5CA7;
    --text-primary: #2c3e50;
    --text-secondary: #5a6a7a;
    --text-light: #7a8a9a;
    --bg-body: #f8fafa;
    --bg-white: #ffffff;
    --border-light: #e0e8e8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --radius: 10px;
    --radius-sm: 6px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--bg-body);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    line-height: 1.3;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--teal);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ---- HEADER ---- */
.help-header {
    background: var(--teal);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.help-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.help-header .logo {
    height: 36px;
}

.help-header .breadcrumb {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}

.help-header .breadcrumb a {
    color: rgba(255,255,255,0.85);
}
.help-header .breadcrumb a:hover {
    color: #fff;
}

.help-header .breadcrumb .separator {
    margin: 0 6px;
    color: rgba(255,255,255,0.5);
}

.help-header .breadcrumb .current {
    color: #fff;
    font-weight: 600;
}

/* ---- LAYOUT / CONTAINER ---- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- HERO TITLE ---- */
.help-hero {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: white;
    padding: 48px 0 40px;
    text-align: center;
}

.help-hero h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.help-hero .subtitle {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- MAIN CONTENT ---- */
.help-content {
    padding: 40px 0 60px;
}

/* ---- DISCLAIMERS / CALLOUTS ---- */
.callout {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
}

.callout-warning {
    background: #fff8e7;
    border-left: 4px solid var(--gold);
    color: #6b5900;
}

.callout-info {
    background: var(--teal-light);
    border-left: 4px solid var(--teal);
    color: var(--teal-dark);
}

.callout-tip {
    background: #f0faf9;
    border-left: 4px solid var(--teal);
    color: var(--teal-dark);
}

.callout-cpf {
    background: #f3eaff;
    border-left: 4px solid #7c3aed;
    color: #4c1d95;
}

.callout-icon {
    margin-right: 6px;
}

/* ---- BLOG LINK ---- */
.blog-link-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin: 16px 0 24px;
    transition: box-shadow 0.2s;
}
.blog-link-box:hover {
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}
.blog-link-box .blog-icon {
    font-size: 20px;
    flex-shrink: 0;
}
.blog-link-box .blog-text {
    font-size: 14px;
    color: var(--text-secondary);
}
.blog-link-box .blog-text strong {
    color: var(--teal);
    display: block;
}

/* ---- STEP SECTIONS ---- */
.step-section {
    margin-bottom: 40px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--teal-light);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--teal);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.step-header h2 {
    font-size: 22px;
    color: var(--teal-dark);
}

.step-section p {
    margin-bottom: 14px;
    color: var(--text-secondary);
}

.step-section ul {
    padding-left: 20px;
}

/* ---- SCREENSHOT IMAGES ---- */
.screenshot {
    margin: 20px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.screenshot img {
    width: 100%;
}

.screenshot-caption {
    padding: 8px 14px;
    background: #f5f7f7;
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

/* ---- DETAIL SECTION (no step number) ---- */
.detail-section {
    margin-bottom: 40px;
}

.detail-section > h2 {
    font-size: 24px;
    color: var(--teal-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--teal-light);
}

.detail-section h3 {
    font-size: 18px;
    color: var(--teal);
    margin: 24px 0 10px;
}

.detail-section p,
.detail-section li {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.detail-section ul {
    padding-left: 24px;
    margin-bottom: 14px;
}

.detail-section li {
    margin-bottom: 8px;
}

/* ---- TAB SECTIONS (inside auto-config) ---- */
.tab-section {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    margin: 20px 0;
}

.tab-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: var(--teal);
    margin: 0 0 12px 0;
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-light);
    color: var(--teal);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: 4px;
    white-space: nowrap;
}

/* ---- INLINE ICONS ---- */
.icon-inline {
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin: 0 2px;
}

/* ---- PRICE TIER TABLE (Shopee-specific) ---- */
.tier-table-wrapper {
    margin: 16px 0;
    overflow-x: auto;
}

.tier-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.tier-table thead {
    background: var(--teal);
    color: white;
}

.tier-table th {
    padding: 10px 14px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.tier-table td {
    padding: 10px 14px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.tier-table tbody tr:nth-child(even) {
    background: #f8fafa;
}

.tier-table tbody tr:hover {
    background: var(--teal-light);
}

.tier-table .tier-number {
    font-weight: 700;
    color: var(--teal);
}

.tier-table .tier-commission {
    font-weight: 700;
    color: var(--text-primary);
}

.tier-table .tier-commission-high {
    color: #dc2626;
    font-weight: 700;
}

/* ---- BREAKDOWN LIST (demonstrativo) ---- */
.breakdown-section {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 16px 0;
}

.breakdown-section h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 4px;
}

.breakdown-section h4.custo-base { background: #dbeeed; color: var(--teal-dark); }
.breakdown-section h4.custos-var { background: var(--gold-light); color: #7a5d00; }
.breakdown-section h4.lucro { background: #e4f7e7; color: #2d6e36; }
.breakdown-section h4.preco-final { background: var(--teal); color: white; }

.breakdown-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.breakdown-section li {
    padding: 4px 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

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

.breakdown-section .sub-items {
    margin-left: 20px;
}

/* ---- ZONA DESFAVORÁVEL ---- */
.zona-desfavoravel-section {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: var(--radius);
    padding: 24px;
    margin: 20px 0;
}

.zona-desfavoravel-section h3 {
    color: #92400e;
    margin-top: 0;
}

.zona-desfavoravel-section p,
.zona-desfavoravel-section li {
    color: #78350f;
}

/* ---- FAQ ---- */
.faq-section {
    margin-bottom: 40px;
}

.faq-section h2 {
    font-size: 24px;
    color: var(--teal-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--teal-light);
}

.faq-item {
    margin-bottom: 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-item summary {
    padding: 14px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    color: var(--teal-dark);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item summary::before {
    content: "▸";
    font-size: 14px;
    color: var(--teal);
    transition: transform 0.2s;
}

.faq-item[open] summary::before {
    transform: rotate(90deg);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-answer {
    padding: 0 20px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- NEXT STEPS ---- */
.next-steps {
    background: linear-gradient(135deg, var(--teal-light), #e0f2f1);
    border-radius: var(--radius);
    padding: 28px;
    margin: 40px 0;
}

.next-steps h2 {
    font-size: 20px;
    color: var(--teal-dark);
    margin-bottom: 16px;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(25, 139, 134, 0.12);
}

.next-steps li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.next-steps li strong {
    display: block;
    color: var(--teal-dark);
    font-size: 16px;
    margin-bottom: 4px;
}

.next-steps li strong::before {
    content: "→ ";
    color: var(--teal);
    font-weight: 700;
}


/* ---- FOOTER ---- */
.help-footer {
    background: #2c3e50;
    color: rgba(255,255,255,0.7);
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
}

.help-footer a {
    color: rgba(255,255,255,0.85);
    margin: 0 12px;
}
.help-footer a:hover {
    color: #fff;
}

.footer-divider {
    margin: 12px 0;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ---- EXAMPLE NOTE ---- */
.example-note {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    margin: 12px 0;
    padding: 8px 12px;
    background: #fafafa;
    border-radius: 4px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .help-hero h1 {
        font-size: 22px;
    }

    .container {
        padding: 0 16px;
    }

    .step-header h2 {
        font-size: 18px;
    }

    .tab-section {
        padding: 16px;
    }

    .next-steps {
        padding: 20px;
    }

    .help-header .breadcrumb {
        font-size: 12px;
    }

    .detail-section > h2 {
        font-size: 20px;
    }

    .breakdown-section {
        padding: 16px;
    }

    .tier-table {
        font-size: 13px;
    }

    .tier-table th,
    .tier-table td {
        padding: 8px 10px;
    }

    .zona-desfavoravel-section {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .help-hero {
        padding: 32px 0 28px;
    }

    .help-hero h1 {
        font-size: 20px;
    }

    .step-header {
        gap: 10px;
    }

    .blog-link-box {
        flex-direction: column;
        text-align: center;
    }
}
