/* HeroShoop Size Calculator - Styles */

.hsc-widget {
    --hsc-primary: #1a1a2e;
    --hsc-accent: #e94560;
    --hsc-accent-soft: #ffe3e8;
    --hsc-border: #e5e5ea;
    --hsc-bg: #ffffff;
    --hsc-text: #1a1a2e;
    --hsc-muted: #6b6b76;

    position: relative;
    max-width: 460px;
    margin: 24px auto;
    background: var(--hsc-bg);
    border: 1px solid var(--hsc-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.06);
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
    color: var(--hsc-text);
    box-sizing: border-box;
}

.hsc-widget * { box-sizing: border-box; }

.hsc-reset-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #f0f0f3;
    color: #8a8a94;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    z-index: 2;
}

.hsc-reset-btn:hover { background: var(--hsc-accent); color: #fff; transform: rotate(90deg); }

.hsc-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hsc-icon { font-size: 28px; line-height: 1; }
.hsc-header h3 { margin: 0; font-size: 18px; font-weight: 700; }

.hsc-howto { background: #f7f7fa; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px; }
.hsc-howto summary { cursor: pointer; font-weight: 600; color: var(--hsc-accent); outline: none; }
.hsc-howto p { margin: 10px 0 2px; color: var(--hsc-muted); line-height: 1.8; }

.hsc-form { display: flex; flex-direction: column; gap: 14px; }
.hsc-field { display: flex; flex-direction: column; gap: 6px; }
.hsc-field label { font-size: 13px; font-weight: 600; color: var(--hsc-text); }
.hsc-field label small { font-weight: 400; color: var(--hsc-muted); }

.hsc-input {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--hsc-border);
    border-radius: 10px; font-size: 15px; font-family: inherit; text-align: right;
}
.hsc-input:focus { outline: none; border-color: var(--hsc-accent); }

.hsc-radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.hsc-radio { display: flex; align-items: center; gap: 6px; font-size: 13px; background: #f7f7fa; padding: 8px 12px; border-radius: 8px; cursor: pointer; border: 1.5px solid transparent; }
.hsc-radio input { accent-color: var(--hsc-accent); }
.hsc-radio:has(input:checked) { border-color: var(--hsc-accent); background: var(--hsc-accent-soft); }

.hsc-submit {
    margin-top: 4px; background: var(--hsc-accent); color: #fff; border: none;
    padding: 13px 20px; border-radius: 10px; font-size: 15px; font-weight: 700;
    cursor: pointer; font-family: inherit; transition: opacity 0.15s ease, transform 0.1s ease;
}
.hsc-submit:hover { opacity: 0.9; }
.hsc-submit:active { transform: scale(0.98); }

.hsc-result { margin-top: 18px; background: linear-gradient(135deg, #1a1a2e, #16213e); border-radius: 14px; padding: 20px; color: #fff; animation: hsc-fade-in 0.3s ease; }
@keyframes hsc-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.hsc-result-main { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.15); margin-bottom: 14px; }
.hsc-result-label { font-size: 12px; opacity: 0.75; margin-bottom: 6px; }
.hsc-result-value { font-size: 34px; font-weight: 800; color: var(--hsc-accent); line-height: 1.2; }

.hsc-result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hsc-shoe-widget .hsc-result-grid { grid-template-columns: repeat(3, 1fr); }
.hsc-result-grid > div { background: rgba(255,255,255,0.08); border-radius: 8px; padding: 10px 6px; text-align: center; }
.hsc-result-grid span { display: block; font-size: 11px; opacity: 0.7; margin-bottom: 4px; }
.hsc-result-grid strong { font-size: 16px; font-weight: 700; }

.hsc-collar-row:empty { display: none; }

.hsc-note { margin: 14px 0 0; font-size: 12px; line-height: 1.8; opacity: 0.8; text-align: center; }

.hsc-error { margin-top: 14px; background: #fde8e8; color: #c0392b; padding: 10px 14px; border-radius: 10px; font-size: 13px; text-align: center; }

@media (max-width: 480px) {
    .hsc-widget { padding: 18px; border-radius: 12px; }
    .hsc-result-value { font-size: 28px; }
}
