/* Shared styles for Pet & Baby Voice Translators */
.tool-container { max-width: 820px; margin: 0 auto; padding: 40px 20px; text-align: center; }
.tool-section { background: #fff; border-radius: 16px; box-shadow: 0 4px 14px rgba(0,0,0,0.06); padding: 32px; margin: 24px 0; }
.tool-h1 { font-size: 40px; font-weight: 800; margin-top: 40px; }
.tool-sub { font-size: 1.15rem; color: #555; margin: 16px 0 28px; }

.rec-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; min-width: 220px;
    background: #d55d34; color: #fff !important; border: none; border-radius: 50px;
    font-weight: 600; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s;
    font-size: 1rem; line-height: 1.2;
}
.rec-btn:hover { background: #cc6d4c; transform: translateY(-2px); }
.rec-btn.recording { background: #b71c1c; animation: av-rec-pulse 1.4s infinite; }
.rec-btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.rec-btn .rec-btn-icon { width: 1.15rem; text-align: center; flex-shrink: 0; }
.rec-btn .rec-btn-label { white-space: nowrap; }
.rec-btn-secondary { background: #fff; color: #d55d34 !important; border: 2px solid #d55d34; }
.rec-btn-secondary:hover { background: #fff8f4; }

@keyframes av-rec-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(183,28,28,.45); }
    50% { box-shadow: 0 0 0 14px rgba(183,28,28,0); }
}

.timer-display {
    font-size: 2.4rem; font-weight: 800; color: #d55d34; margin: 14px 0;
    font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.or-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #bbb; font-size: 0.85rem; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: #e8e8e8; }
.upload-label {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
    border: 1.5px dashed #e0e0e0; border-radius: 10px; cursor: pointer;
    font-size: 0.9rem; color: #666; transition: all .2s;
}
.upload-label:hover { border-color: #d55d34; color: #d55d34; background: #fff8f4; }
.upload-label input { display: none; }
.upload-filename { font-size: 0.82rem; color: #888; margin-top: 6px; min-height: 1.2em; }

.tool-steps-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; }
.tool-steps { display: flex; flex-direction: column; gap: 10px; text-align: left; max-width: 520px; margin: 0 auto 18px; }
.tool-step { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: #444; }
.tool-step-num {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
    background: #fff8f4; color: #d55d34; font-weight: 800; font-size: 0.85rem;
    display: inline-flex; align-items: center; justify-content: center;
}
.privacy-note { font-size: 0.82rem; color: #999; margin-top: 18px; }
.privacy-note i { margin-right: 6px; }

.av-tool-error {
    display: none; align-items: flex-start; gap: 10px; text-align: left;
    background: #fff5f5; border: 1px solid #f5c2c2; color: #9b1c1c;
    border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 0.92rem;
}
.av-tool-error.is-visible { display: flex; }
.av-tool-error[hidden] { display: none !important; }

.av-loading-spinner {
    width: 36px; height: 36px; margin: 0 auto;
    border: 3px solid #f0d0c0; border-top-color: #d55d34;
    border-radius: 50%; animation: av-spin .8s linear infinite;
}
@keyframes av-spin { to { transform: rotate(360deg); } }

.av-results { display: none; text-align: left; animation: av-fade-in .35s ease-out; }
@keyframes av-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.av-result-hero {
    text-align: left;
    background: linear-gradient(180deg, #fff8f4 0%, #fff 42%);
    border: 1px solid #f0d8c8;
}
.av-need-label {
    font-size: 0.75rem; color: #888; text-transform: uppercase; letter-spacing: 0.08em;
    font-weight: 700; margin-bottom: 8px;
}
.av-need-name {
    font-size: clamp(1.55rem, 3.5vw, 2rem); font-weight: 800; color: #9a3412;
    line-height: 1.2; margin: 0 0 18px; letter-spacing: -0.02em;
}
.av-hero-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
    margin-bottom: 22px;
}
.av-urgency {
    display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.av-urgency-low { background: #e8f5e9; color: #2e7d32; }
.av-urgency-medium { background: #fff3e0; color: #ef6c00; }
.av-urgency-high { background: #ffebee; color: #c62828; }

.av-confidence {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid #eed9cc; border-radius: 999px;
    padding: 6px 14px 6px 6px;
}
.av-confidence-ring { flex-shrink: 0; display: block; }
.av-confidence-track { stroke: #f0e0d4; }
.av-confidence-fill {
    stroke: #d55d34; stroke-linecap: round;
    transition: stroke-dashoffset .85s cubic-bezier(.4, 0, .2, 1);
}
.av-confidence-text { display: flex; flex-direction: column; line-height: 1.15; }
.av-confidence-value { font-size: 1.05rem; font-weight: 800; color: #d55d34; }
.av-confidence-caption {
    font-size: 0.68rem; color: #888; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
}

.av-translation-block {
    background: #fff; border: 1px solid #eed9cc; border-radius: 14px;
    padding: 16px 18px;
}
.av-section-title-sm { margin-bottom: 8px !important; font-size: 0.78rem !important; color: #888; text-transform: uppercase; letter-spacing: 0.07em; }
.av-translation {
    font-size: 1.2rem; font-weight: 700; color: #333; line-height: 1.45;
    margin: 0; font-style: italic;
}
.av-section-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 10px; }
.av-explanation { color: #444; line-height: 1.6; margin: 0; font-size: 0.98rem; }
.av-detail-grid { text-align: left; }
.av-detail-block { margin-bottom: 22px; }
.av-detail-block:last-of-type { margin-bottom: 16px; }
.av-list { list-style: none; padding: 0; margin: 0; }
.av-list li {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 10px 0; border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem; color: #444; line-height: 1.45;
}
.av-list li:last-child { border-bottom: none; }
.av-list .list-icon { color: #d55d34; margin-top: 3px; flex-shrink: 0; width: 1rem; text-align: center; }

.av-alt-item {
    background: #fafafa; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px;
}
.av-alt-item:last-child { margin-bottom: 0; }
.av-alt-name { font-weight: 700; color: #333; margin-bottom: 4px; }
.av-alt-why { font-size: 0.9rem; color: #666; margin: 0; }

.av-disclaimer {
    font-size: 0.85rem; color: #777; background: #f7f7f7; border-radius: 10px;
    padding: 12px 14px; margin: 0; line-height: 1.5;
}
.av-try-again-wrap { text-align: center; margin: 8px 0 24px; }

.av-research { text-align: left; }
.av-research h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; text-align: center; }
.av-research > p { color: #555; line-height: 1.6; margin-bottom: 18px; text-align: center; }
.av-need-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) {
    .av-need-grid { grid-template-columns: 1fr 1fr; }
}
.av-need-tile {
    background: #fafafa; border-radius: 12px; padding: 14px 16px; text-align: left;
    border: 1px solid #f0e6e0;
}
.av-need-tile h3 { font-size: 0.98rem; font-weight: 700; margin: 0 0 6px; color: #9a3412; }
.av-need-tile p { font-size: 0.88rem; color: #555; margin: 0; line-height: 1.45; }

.tool-feat-grid { margin: 36px 0; text-align: center; }
.tool-feat-grid h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 22px; }
.tool-feat-grid .feat-icon { font-size: 1.6rem; color: #d55d34; margin-bottom: 10px; }
.tool-feat-grid h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.tool-feat-grid p { font-size: 0.92rem; color: #666; line-height: 1.5; }

.faq-block { text-align: left; margin: 40px 0 20px; }
.faq-item { margin-bottom: 18px; }
.faq-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.faq-item p { color: #555; line-height: 1.55; margin: 0; }

@media (max-width: 575px) {
    .tool-h1 { font-size: 1.75rem; }
    .tool-section { padding: 22px 16px; }
}
