/* Frenchie Tools Hub — Frontend Tool Styles */

.fth-tool-wrap {
    background: #fff;
    border: 2px solid #e8f4ff;
    border-radius: 12px;
    margin: 28px 0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.fth-tool-header {
    background: linear-gradient(135deg, #1a3a5c 0%, #2271b1 100%);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.fth-tool-header h3 {
    margin: 0 !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 0 !important;
}
.fth-icon { font-size: 22px; }

.fth-tool-body { padding: 20px; }

/* Row layout */
.fth-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.fth-field { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 140px; }
.fth-field label { font-size: 13px; font-weight: 600; color: #444; }
.fth-field select, .fth-field input[type="number"], .fth-field input[type="date"] {
    padding: 9px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fafafa;
    color: #1d2327;
    transition: border-color 0.2s;
}
.fth-field select:focus, .fth-field input:focus { border-color: #2271b1; outline: none; background: #fff; }

/* Buttons */
.fth-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a3a5c 0%, #2271b1 100%);
    color: #fff !important;
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none !important;
}
.fth-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(34,113,177,0.35); }
.fth-btn-outline {
    background: transparent;
    color: #2271b1 !important;
    border: 2px solid #2271b1;
}
.fth-btn-outline:hover { background: #f0f7ff; }
.fth-btn-red { background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%); }

/* Result boxes */
.fth-result {
    margin-top: 18px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1.5px solid #bae6fd;
    border-radius: 8px;
    padding: 18px;
    animation: fthFadeIn 0.3s ease;
}
.fth-result h4 { margin: 0 0 12px 0 !important; color: #1d2327 !important; font-size: 16px !important; border: none !important; padding: 0 !important; }
@keyframes fthFadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }

/* Stat rows */
.fth-stat-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 14px; }
.fth-stat-row:last-of-type { border-bottom: none; }
.fth-stat-row span { color: #666; }
.fth-stat-row strong { color: #1d2327; }

/* Tips */
.fth-tip { font-size: 13px; color: #555; background: #fffbeb; border-left: 3px solid #f59e0b; padding: 8px 12px; border-radius: 0 6px 6px 0; margin-top: 10px !important; }

/* Name generator */
.fth-names-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.fth-name-badge { background: #1a3a5c; color: #fff; padding: 8px 14px; border-radius: 20px; font-size: 14px; font-weight: 600; text-align: center; }

/* Quiz */
.fth-quiz-progress { font-size: 12px; color: #999; margin-bottom: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.fth-question-text { font-size: 16px; font-weight: 600; color: #1d2327; margin-bottom: 14px !important; }
.fth-quiz-options { display: flex; flex-direction: column; gap: 8px; }
.fth-quiz-opt {
    background: #f8f9fa;
    border: 1.5px solid #e5e7eb;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
    color: #1d2327;
}
.fth-quiz-opt:hover { background: #e0f2fe; border-color: #2271b1; color: #1d2327; }

/* Price big display */
.fth-price-big { font-size: 32px; font-weight: 800; color: #2271b1; text-align: center; margin: 12px 0; }

/* Hook size big display */
.fth-hook-big { font-size: 36px; font-weight: 800; color: #5b21b6; text-align: center; margin: 12px 0; }

/* Stitch counter */
.fth-stitch-display { text-align: center; background: #1a3a5c; color: #fff; border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.fth-stitch-round { font-size: 14px; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; }
.fth-stitch-count { font-size: 64px; font-weight: 800; line-height: 1; margin: 8px 0; }
.fth-stitch-label { font-size: 14px; opacity: 0.8; }
.fth-stitch-btns { display: flex; gap: 10px; justify-content: center; }
.fth-sc-log { margin-top: 14px; padding: 10px; background: #f8f9fa; border-radius: 6px; font-size: 13px; color: #444; min-height: 20px; }

/* Vaccination rows */
.fth-vac-row { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; align-items: flex-start; font-size: 13px; }
.fth-vac-date { color: #2271b1; font-weight: 600; white-space: nowrap; min-width: 100px; }

/* Responsive */
@media (max-width: 600px) {
    .fth-row { flex-direction: column; }
    .fth-names-grid { grid-template-columns: 1fr; }
    .fth-stitch-btns { flex-direction: column; }
    .fth-btn { width: 100%; justify-content: center; }
}
