/* ============================================
   Glance Five — Amazon Fee Calculator Styles
   Scoped to .calc-* classes to avoid conflicts
   with the global style.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Page Hero ── */
.calc-hero {
    padding: 140px 5vw 60px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(3,52,127,0.35) 0%, transparent 65%);
    border-bottom: 1px solid var(--border);
}
.calc-hero-inner { max-width: 800px; margin: 0 auto; }
.calc-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin: 1rem 0; letter-spacing: -0.04em; }
.calc-hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 680px; margin: 0 auto; }

/* ── Section Wrapper ── */
.calc-section { padding: 60px 5vw 80px; }

/* ── 30/70 Layout ── */
.calc-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 24px;
    align-items: start;
    max-width: 1600px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .calc-wrapper { grid-template-columns: 1fr; }
}

/* Left column holds multiple cards stacked */
.calc-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

/* ── Cards ── */
.calc-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.calc-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    letter-spacing: -0.02em;
}

/* ── Form Inputs ── */
.calc-inputs { display: flex; flex-direction: column; gap: 18px; }

.calc-field { display: flex; flex-direction: column; }

.calc-field label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.calc-field input[type="number"],
.calc-field input[type="text"] {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 11px 14px;
    width: 100%;
    transition: border-color 0.2s;
}
.calc-field input:focus { outline: none; border-color: var(--accent); }

.calc-select-wrap { position: relative; }
.calc-select-wrap select {
    width: 100%;
    padding: 11px 14px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 38px;
    transition: border-color 0.2s;
}
.calc-select-wrap select option { background: #0d1b2e; }
.calc-select-wrap select:focus { outline: none; border-color: var(--accent); }

.dim-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

/* Range slider */
input[type="range"] {
    width: 100%;
    margin: 10px 0 8px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track {
    width: 100%; height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    border: none;
}
input[type="range"]::-webkit-slider-thumb {
    height: 16px; width: 16px;
    background: var(--accent);
    border-radius: 50%; cursor: pointer;
    -webkit-appearance: none;
    margin-top: -6px;
    box-shadow: 0 0 0 3px rgba(244,191,49,0.2);
}

/* ── Bulk Engine ── */
.calc-btn-secondary {
    width: 100%; padding: 12px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.3);
    color: var(--text-muted);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}
.calc-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.bulk-upload-zone {
    display: block; cursor: pointer;
    border: 1.5px dashed var(--accent);
    border-radius: 10px; padding: 20px;
    text-align: center;
    background: rgba(244,191,49,0.04);
    transition: background 0.2s;
    color: var(--accent);
    font-weight: 700; font-size: 0.9rem;
}
.bulk-upload-zone.hovered { background: rgba(244,191,49,0.1); }

/* ── Comparison Matrix ── */
.calc-right { overflow-x: visible; }

.matrix-wrap { width: 100%; overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); }

.matrix-table {
    width: 100%; border-collapse: collapse;
    min-width: 640px;
    background: rgba(0,0,0,0.2);
}

.th-label {
    text-align: left; padding: 16px 14px;
    color: var(--text-muted);
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
}

.th-group {
    text-align: center; padding: 14px 10px;
    font-size: 0.8rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.06em;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
}
.th-es { color: var(--accent); border-left: 1px solid var(--border); }
.th-fba { color: #10b981; border-left: 1px solid var(--border); }

.th-sub {
    text-align: center; padding: 12px 10px;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}
.th-es-border { border-left: 1px solid var(--border); }
.th-fba-border { border-left: 1px solid var(--border); }

.matrix-table td {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
}
.td-label { color: var(--text-muted); font-weight: 400; }

.matrix-table tbody tr:last-child td { border-bottom: none; }
.matrix-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

.matrix-table tfoot tr td {
    padding: 16px 10px !important;
    border-top: 1px solid var(--border);
    font-weight: 800;
    font-size: 1rem;
    background: rgba(16,185,129,0.06);
}

/* ── CTA Banner ── */
.calc-cta-banner {
    margin: 40px auto 0;
    max-width: 1600px;
    text-align: center;
    background: var(--bg-surface);
    border: 1px solid rgba(244,191,49,0.3);
    border-radius: 16px;
    padding: 48px 24px;
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(3,52,127,0.1) 100%);
}

.calc-cta-banner h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}

.calc-cta-banner p {
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 28px;
    font-size: 1.05rem;
    line-height: 1.65;
}

/* ── Export Button override ── */
.calc-right .btn-premium { margin-top: 20px; }
