/* ============================================================
   African Reaper Arrows — Arrow Weight Calculator Block
   All classes prefixed arw- to avoid theme conflicts.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@400;500;600&family=Barlow+Condensed:wght@400;600;700&display=swap');

.arw-wrap {
    --arw-bg:           #0b0b0b;
    --arw-bg-card:      #161616;
    --arw-bg-input:     #0f0f0f;
    --arw-border:       #252525;
    --arw-gold:         #C89830;
    --arw-gold-light:   #e8b840;
    --arw-text:         #e8e8e8;
    --arw-text-muted:   #7a7a7a;
    --arw-text-dim:     #3a3a3a;
    --arw-green:        #4caf7d;
    --arw-amber:        #e8a030;
    --arw-red:          #e05050;
    --arw-radius:       6px;
    --arw-radius-lg:    12px;
    --arw-font-display: 'Bebas Neue', Impact, sans-serif;
    --arw-font-body:    'Barlow', 'Helvetica Neue', sans-serif;
    --arw-font-cond:    'Barlow Condensed', 'Barlow', sans-serif;

    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    font-family: var(--arw-font-body);
    color: var(--arw-text);
}

.arw-wrap *,
.arw-wrap *::before,
.arw-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Card ── */
.arw-card {
    background: var(--arw-bg);
    border: 1px solid var(--arw-border);
    border-top: 3px solid var(--arw-gold);
    border-radius: var(--arw-radius-lg);
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
}
.arw-card::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0, rgba(255,255,255,.018) 1px, transparent 1px, transparent 9px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,.018) 0, rgba(255,255,255,.018) 1px, transparent 1px, transparent 9px);
    pointer-events: none; z-index: 0;
}
.arw-card > * { position: relative; z-index: 1; }

/* ── Header ── */
.arw-header {
    display: flex; align-items: flex-start; gap: 14px;
    padding-bottom: 24px; border-bottom: 1px solid var(--arw-border); margin-bottom: 28px;
}
.arw-logomark {
    flex-shrink: 0; width: 46px; height: 46px;
    background: rgba(200,152,48,.1); border: 1px solid rgba(200,152,48,.25);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--arw-gold);
}
.arw-title {
    font-family: var(--arw-font-display);
    font-size: clamp(24px, 5vw, 40px); letter-spacing: .07em;
    color: var(--arw-gold); line-height: 1; margin-bottom: 6px;
    border: none; padding: 0;
}
.arw-subtitle { font-size: 12px; color: var(--arw-text-muted); line-height: 1.55; }

/* ── Section titles ── */
.arw-section-title {
    font-family: var(--arw-font-cond);
    font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--arw-gold); margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}
.arw-section-title::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(to right, rgba(200,152,48,.3), transparent);
}

/* ── Grids ── */
.arw-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-bottom: 28px; }
.arw-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px 20px; margin-bottom: 28px; }

/* ── Fields ── */
.arw-field { display: flex; flex-direction: column; gap: 7px; }
.arw-label {
    font-family: var(--arw-font-cond);
    font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--arw-text-muted);
}
.arw-sublabel { font-size: 11px; color: var(--arw-text-dim); font-family: var(--arw-font-cond); margin-top: -4px; }

/* ── Text inputs ── */
.arw-input-wrap {
    display: flex; align-items: center;
    background: var(--arw-bg-input); border: 1px solid var(--arw-border);
    border-radius: var(--arw-radius); overflow: hidden; transition: border-color .18s;
}
.arw-input-wrap:focus-within { border-color: var(--arw-gold); }
.arw-input {
    background: transparent; border: none; outline: none;
    color: var(--arw-text); font-family: var(--arw-font-cond);
    font-size: 16px; font-weight: 600; padding: 11px 14px; width: 100%;
    -moz-appearance: textfield;
}
.arw-input::-webkit-inner-spin-button,
.arw-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.arw-unit {
    font-family: var(--arw-font-cond); font-size: 12px; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--arw-text-muted); padding: 0 12px 0 0; white-space: nowrap; flex-shrink: 0;
}

/* ── Stepper ── */
.arw-stepper {
    display: flex; align-items: center;
    background: var(--arw-bg-input); border: 1px solid var(--arw-border);
    border-radius: var(--arw-radius); overflow: hidden; transition: border-color .18s;
}
.arw-stepper:focus-within { border-color: var(--arw-gold); }
.arw-step-btn {
    background: none; border: none; color: var(--arw-text-muted);
    cursor: pointer; padding: 10px 14px; font-size: 18px; line-height: 1;
    transition: color .15s, background .15s; flex-shrink: 0;
}
.arw-step-btn:hover { color: var(--arw-gold); background: rgba(200,152,48,.08); }
.arw-step-input {
    background: transparent; border: none; outline: none;
    color: var(--arw-text); font-family: var(--arw-font-cond);
    font-size: 16px; font-weight: 600; text-align: center; width: 50px;
    -moz-appearance: textfield;
}
.arw-step-input::-webkit-inner-spin-button,
.arw-step-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── Toggles ── */
.arw-toggles { display: flex; flex-wrap: wrap; gap: 7px; }
.arw-toggle {
    font-family: var(--arw-font-cond); font-size: 12px; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 8px 14px; border: 1px solid var(--arw-border);
    border-radius: var(--arw-radius); background: var(--arw-bg-card);
    color: var(--arw-text-muted); cursor: pointer; transition: all .18s;
}
.arw-toggle:hover { border-color: #555; color: var(--arw-text); }
.arw-toggle.active { background: rgba(200,152,48,.13); border-color: var(--arw-gold); color: var(--arw-gold-light); }

/* ── Divider ── */
.arw-divider { height: 1px; background: var(--arw-border); margin: 24px 0; }

/* ── Calculate button ── */
.arw-btn-calc {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--arw-font-display); font-size: 19px;
    letter-spacing: .14em; text-transform: uppercase;
    padding: 16px 40px; background: var(--arw-gold);
    color: #080808; border: none; border-radius: var(--arw-radius);
    cursor: pointer; width: 100%; justify-content: center;
    transition: background .18s, transform .15s;
    margin-top: 4px;
}
.arw-btn-calc:hover { background: var(--arw-gold-light); }
.arw-btn-calc:active { transform: scale(.98); }

/* ── Results ── */
.arw-results {
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .6s cubic-bezier(.25,1,.5,1), opacity .4s, margin .4s;
}
.arw-results.is-open { max-height: 1400px; opacity: 1; margin-top: 32px; }

/* ── Stat cards ── */
.arw-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 20px; }
.arw-stat {
    background: var(--arw-bg-card); border: 1px solid var(--arw-border);
    border-radius: var(--arw-radius-lg); padding: 20px 18px;
    position: relative; overflow: hidden;
}
.arw-stat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--arw-border); }
.arw-stat--highlight { border-color: rgba(200,152,48,.4); }
.arw-stat--highlight::before { background: var(--arw-gold); }
.arw-stat-label {
    font-family: var(--arw-font-cond); font-size: 10px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--arw-text-muted); margin-bottom: 6px;
}
.arw-stat-val {
    font-family: var(--arw-font-display);
    font-size: clamp(28px, 5vw, 38px); letter-spacing: -.01em; line-height: 1; color: var(--arw-text);
}
.arw-stat--highlight .arw-stat-val { color: var(--arw-gold); }
.arw-stat-unit { font-family: var(--arw-font-cond); font-size: 12px; color: var(--arw-text-muted); margin-top: 3px; }
.arw-stat-badge { display: inline-block; font-family: var(--arw-font-cond); font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 4px; margin-top: 6px; }
.arw-badge--green  { background: rgba(76,175,125,.15); border: 1px solid rgba(76,175,125,.3); color: var(--arw-green); }
.arw-badge--amber  { background: rgba(232,160,48,.15); border: 1px solid rgba(232,160,48,.3); color: var(--arw-amber); }
.arw-badge--red    { background: rgba(224,80,80,.15);  border: 1px solid rgba(224,80,80,.3);  color: var(--arw-red); }

/* ── FOC bar ── */
.arw-foc-section {
    background: var(--arw-bg-card); border: 1px solid var(--arw-border);
    border-radius: var(--arw-radius-lg); padding: 20px; margin-bottom: 16px;
}
.arw-foc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.arw-foc-title {
    font-family: var(--arw-font-cond); font-size: 11px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--arw-text-muted);
}
.arw-foc-value { font-family: var(--arw-font-display); font-size: 28px; color: var(--arw-gold); line-height: 1; }
.arw-foc-track { height: 8px; background: var(--arw-border); border-radius: 4px; overflow: hidden; }
.arw-foc-fill { height: 100%; border-radius: 4px; transition: width .6s cubic-bezier(.25,1,.5,1), background .4s; }
.arw-foc-zones { display: flex; justify-content: space-between; margin-top: 6px; }
.arw-foc-zone { font-family: var(--arw-font-cond); font-size: 10px; color: var(--arw-text-dim); letter-spacing: .06em; }
.arw-foc-label { font-size: 11px; color: var(--arw-text-muted); margin-top: 8px; font-family: var(--arw-font-cond); }

/* ── Arrow visual ── */
.arw-arrow-visual {
    background: var(--arw-bg-card); border: 1px solid var(--arw-border);
    border-radius: var(--arw-radius-lg); padding: 20px; margin-bottom: 16px; overflow: hidden;
}
.arw-av-title {
    font-family: var(--arw-font-cond); font-size: 10px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--arw-text-muted); margin-bottom: 14px;
}
.arw-av-track { position: relative; height: 28px; display: flex; align-items: center; margin-bottom: 8px; }
.arw-av-shaft { height: 6px; background: #2a2a2a; border-radius: 3px; flex: 1; position: relative; overflow: hidden; }
.arw-av-segments { position: absolute; inset: 0; display: flex; }
.arw-av-seg { height: 100%; transition: flex .5s cubic-bezier(.25,1,.5,1); }
.arw-av-nock { width: 10px; height: 12px; border-radius: 2px 0 0 2px; background: #444; flex-shrink: 0; }
.arw-av-point { width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid var(--arw-gold); flex-shrink: 0; }
.arw-av-pointer {
    position: absolute; bottom: -4px; transform: translateX(-50%);
    transition: left .5s cubic-bezier(.25,1,.5,1);
    font-size: 9px; color: var(--arw-gold);
}
.arw-av-pointer::before { content: '▲'; }
.arw-av-labels {
    display: flex; justify-content: space-between;
    font-family: var(--arw-font-cond); font-size: 10px; color: var(--arw-text-dim);
}

/* ── Component breakdown ── */
.arw-breakdown {
    background: var(--arw-bg-card); border: 1px solid var(--arw-border);
    border-radius: var(--arw-radius-lg); padding: 20px; margin-bottom: 16px;
}
.arw-bd-title {
    font-family: var(--arw-font-cond); font-size: 10px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--arw-text-muted); margin-bottom: 12px;
}
.arw-bd-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--arw-border); }
.arw-bd-row:last-child { border-bottom: none; }
.arw-bd-key { font-family: var(--arw-font-cond); font-size: 12px; color: var(--arw-text-muted); display: flex; align-items: center; gap: 8px; }
.arw-bd-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.arw-bd-val { font-family: var(--arw-font-cond); font-size: 13px; font-weight: 700; color: var(--arw-text); }
.arw-bd-pct { font-size: 11px; color: var(--arw-text-muted); margin-left: 4px; }
.arw-bd-row--total .arw-bd-key { color: var(--arw-gold-light); font-weight: 700; }
.arw-bd-row--total .arw-bd-val { color: var(--arw-gold-light); font-size: 15px; }

/* ── Note ── */
.arw-note {
    font-size: 13px; line-height: 1.65; color: var(--arw-text-muted);
    background: rgba(255,255,255,.03); border: 1px solid var(--arw-border);
    border-radius: var(--arw-radius); padding: 12px 14px; margin-bottom: 16px;
}
.arw-note:empty { display: none; }

/* ── Shop button ── */
.arw-btn-shop {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--arw-font-display); font-size: 16px;
    letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
    padding: 15px; border: 1px solid var(--arw-gold); border-radius: var(--arw-radius);
    color: var(--arw-gold); background: transparent;
    transition: background .18s, color .18s, box-shadow .2s;
}
.arw-btn-shop:hover { background: var(--arw-gold); color: #080808; box-shadow: 0 6px 24px rgba(200,152,48,.3); }

/* ── Editor preview ── */
.arw-editor-preview {
    background: #0f0f0f; border: 1px dashed #444;
    border-top: 3px solid #C89830; border-radius: 8px; padding: 24px;
}
.arw-editor-preview__inner { display: flex; align-items: center; gap: 16px; }
.arw-editor-preview__icon { flex-shrink: 0; color: #C89830; }
.arw-editor-preview__text strong { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 700; color: #C89830; }
.arw-editor-preview__text span { font-size: 14px; color: #999; }
.arw-editor-preview__text p { font-size: 12px; color: #555; margin-top: 6px; }

/* ── Responsive ── */
@media (min-width: 600px) {
    .arw-card { padding: 40px 44px; }
    .arw-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .arw-grid-3 { grid-template-columns: 1fr 1fr; }
    .arw-grid   { grid-template-columns: 1fr; }
}
