/**
 * Homer Patuach Tools - עיצוב תואם אתר
 * פלטה: כחול #7699f2, כתום #FB8255, קורל #FB6965, טקסט #1f2937, משני #64748b
 */

.hptl-archive,
.hptl-single {
    --hptl-blue: #7699f2;
    --hptl-blue-soft: #eef1f6;
    --hptl-blue-mid: #9db4f5;
    --hptl-orange: #fb8255;
    --hptl-coral: #fb6965;
    --hptl-text: #1f2937;
    --hptl-muted: #64748b;
    --hptl-card: #ffffff;
    --hptl-bg: #eceef2;
    --hptl-border: rgba(118, 153, 242, 0.14);
    --hptl-green: #22c55e;
    --hptl-red: #ef4444;
    --hptl-amber: #f59e0b;

    font-family: 'Rubik', 'Segoe UI', Tahoma, sans-serif;
    direction: rtl;
    color: var(--hptl-text);
    background: var(--hptl-bg);
    padding: 24px 16px 64px;
}

.hptl-archive-inner,
.hptl-single-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.hptl-hidden { display: none !important; }

.hptl-empty {
    color: var(--hptl-muted);
    text-align: center;
    padding: 24px;
    background: var(--hptl-card);
    border-radius: 12px;
    border: 1px dashed var(--hptl-border);
}

/* ===================== כפתורים ===================== */

.hptl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    line-height: 1.2;
}
.hptl-btn:hover { transform: translateY(-1px); }

.hptl-btn--primary {
    background: linear-gradient(135deg, var(--hptl-orange), var(--hptl-coral));
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(251, 130, 85, 0.35);
}
.hptl-btn--primary:hover { box-shadow: 0 6px 18px rgba(251, 130, 85, 0.45); color: #fff !important; }

.hptl-btn--secondary {
    background: var(--hptl-blue);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(118, 153, 242, 0.3);
}
.hptl-btn--secondary:hover { background: #5f85ee; color: #fff !important; }

.hptl-btn--ghost {
    background: transparent;
    color: var(--hptl-muted) !important;
    border: 1px solid rgba(100, 116, 139, 0.3);
}
.hptl-btn--ghost:hover { border-color: var(--hptl-blue); color: var(--hptl-blue) !important; }

/* ===================== כוכבים ===================== */

.hptl-stars {
    position: relative;
    display: inline-block;
    font-size: 17px;
    line-height: 1;
    letter-spacing: 2px;
    direction: ltr;
    vertical-align: middle;
}
.hptl-stars-bg { color: #d7dce6; }
.hptl-stars-fg {
    color: var(--hptl-amber);
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
}

/* ===================== ארכיון ===================== */

.hptl-archive-hero {
    text-align: center;
    padding: 36px 20px 28px;
    margin-bottom: 24px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 85% 20%, rgba(118, 153, 242, 0.16), transparent 45%),
        radial-gradient(circle at 12% 80%, rgba(251, 130, 85, 0.13), transparent 45%),
        linear-gradient(135deg, #eef2fb, #fff4ed);
}
.hptl-archive-title {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    color: var(--hptl-text);
    margin: 0 0 10px;
}
.hptl-archive-sub {
    color: var(--hptl-muted);
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto 8px;
    line-height: 1.6;
}

.hptl-archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    background: var(--hptl-card);
    padding: 14px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(31, 41, 55, 0.05);
    align-items: center;
}
.hptl-archive-filters input[type="search"],
.hptl-filter-select,
.hptl-examples-filters input[type="search"],
.hptl-examples-filters select {
    font-family: inherit;
    font-size: 14px;
    color: var(--hptl-text);
    background: var(--hptl-blue-soft);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 9px 16px;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.hptl-archive-filters input[type="search"] { flex: 1 1 200px; min-width: 160px; }
.hptl-archive-filters input[type="search"]:focus,
.hptl-filter-select:focus,
.hptl-examples-filters input:focus,
.hptl-examples-filters select:focus {
    border-color: var(--hptl-blue);
    background: #fff;
}

.hptl-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 18px;
}

/* ---- כרטיס כלי ---- */

.hptl-card {
    background: var(--hptl-card);
    border-radius: 16px;
    border: 1px solid var(--hptl-border);
    box-shadow: 0 2px 10px rgba(31, 41, 55, 0.05);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hptl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(118, 153, 242, 0.18);
}

.hptl-card-main {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-decoration: none !important;
    color: inherit !important;
}

.hptl-card-logo,
.hptl-hero-logo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--hptl-blue-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hptl-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    box-sizing: border-box;
}
.hptl-logo-img.hptl-logo-broken { display: none; }
.hptl-logo-letter {
    font-size: 30px;
    font-weight: 700;
    color: var(--hptl-blue);
}

.hptl-card-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--hptl-text);
}
.hptl-card-excerpt {
    font-size: 14px;
    color: var(--hptl-muted);
    line-height: 1.55;
    margin: 0;
}

.hptl-card-chips,
.hptl-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hptl-chip {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--hptl-blue-soft);
    color: var(--hptl-blue) !important;
    text-decoration: none !important;
    transition: background 0.15s ease;
}
a.hptl-chip:hover { background: #dfe7fb; }
.hptl-chip--tool_type { background: #fdeee6; color: var(--hptl-orange) !important; }
.hptl-chip--tool_context { background: #eafaf1; color: #16a34a !important; }
.hptl-chip--tool_output { background: #f3e8ff; color: #9333ea !important; }
.hptl-chip--tool_format { background: #e0f2fe; color: #0284c7 !important; }

.hptl-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--hptl-border);
    font-size: 13px;
    color: var(--hptl-muted);
}
.hptl-rating-count { color: var(--hptl-muted); font-size: 12.5px; margin-inline-start: 4px; }

/* ===================== תגיות מידע ===================== */

.hptl-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}
.hptl-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    background: var(--hptl-card);
    border: 1px solid var(--hptl-border);
    border-radius: 10px;
    padding: 5px 12px;
    color: var(--hptl-text);
}
.hptl-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.hptl-badge--hebrew .hptl-badge-icon { background: var(--hptl-blue); }
.hptl-badge--free .hptl-badge-icon { background: var(--hptl-green); }
.hptl-badge--fun .hptl-badge-icon { background: var(--hptl-orange); }
.hptl-badge-label { color: var(--hptl-muted); font-size: 12px; }
.hptl-badge-value { font-weight: 600; }

/* ===================== עמוד כלי בודד ===================== */

.hptl-breadcrumb { margin-bottom: 16px; }
.hptl-breadcrumb a {
    color: var(--hptl-blue) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
}
.hptl-breadcrumb a:hover { text-decoration: underline !important; }

.hptl-hero {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    background:
        radial-gradient(circle at 90% 15%, rgba(118, 153, 242, 0.14), transparent 40%),
        linear-gradient(135deg, #ffffff, #f4f7fe);
    border: 1px solid var(--hptl-border);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 22px;
    box-shadow: 0 4px 18px rgba(31, 41, 55, 0.06);
}
.hptl-hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--hptl-border);
}
.hptl-hero-logo .hptl-logo-letter { font-size: 44px; }
.hptl-hero-main { flex: 1; min-width: 0; }

.hptl-hero-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}
.hptl-hero-title {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 700;
    margin: 0;
    color: var(--hptl-text);
}

.hptl-hero-ratings {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-bottom: 6px;
}
.hptl-rating-block { display: inline-flex; align-items: center; gap: 8px; }
.hptl-rating-text { font-size: 13.5px; color: var(--hptl-muted); }
.hptl-rating-editor-label { font-size: 13px; color: var(--hptl-muted); }
.hptl-rating-block--editor .hptl-stars { font-size: 14px; }

.hptl-description {
    background: var(--hptl-card);
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.7;
    box-shadow: 0 2px 10px rgba(31, 41, 55, 0.04);
}
.hptl-description p:last-child { margin-bottom: 0; }

/* ---- ווידג'ט דירוג ---- */

.hptl-rate-widget {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    background: var(--hptl-card);
    border: 1px solid var(--hptl-border);
    border-radius: 999px;
    padding: 10px 22px;
    margin-bottom: 26px;
    width: fit-content;
}
.hptl-rate-label { font-size: 14px; font-weight: 600; }
.hptl-rate-stars { display: inline-flex; direction: ltr; }
.hptl-rate-star {
    background: none;
    border: none;
    font-size: 24px;
    color: #d7dce6;
    cursor: pointer;
    padding: 0 2px;
    transition: color 0.12s ease, transform 0.12s ease;
    line-height: 1;
}
.hptl-rate-star:hover { transform: scale(1.15); }
.hptl-rate-star--on { color: var(--hptl-amber); }
.hptl-rate-summary { font-size: 13px; color: var(--hptl-muted); }

/* ---- מקטעים ---- */

.hptl-section { margin-bottom: 30px; }
.hptl-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--hptl-text);
    margin: 0 0 6px;
    position: relative;
    padding-inline-start: 14px;
}
.hptl-section-title::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--hptl-blue), var(--hptl-blue-mid));
}
.hptl-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.hptl-section-sub {
    color: var(--hptl-muted);
    font-size: 14px;
    margin: 0 0 14px;
}
.hptl-count-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    background: var(--hptl-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    vertical-align: middle;
    margin-inline-start: 6px;
}

.hptl-section--teaching p,
.hptl-section--pedagogy p {
    background: var(--hptl-card);
    border-radius: 14px;
    padding: 18px 22px;
    line-height: 1.7;
    margin: 0;
    box-shadow: 0 2px 10px rgba(31, 41, 55, 0.04);
}

/* ---- יתרונות / חסרונות / מגבלות ---- */

.hptl-proscons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.hptl-proscons-col {
    background: var(--hptl-card);
    border-radius: 14px;
    padding: 18px 20px;
    border-top: 4px solid transparent;
    box-shadow: 0 2px 10px rgba(31, 41, 55, 0.04);
}
.hptl-proscons-col--pros { border-top-color: var(--hptl-green); }
.hptl-proscons-col--cons { border-top-color: var(--hptl-red); }
.hptl-proscons-col--limits { border-top-color: var(--hptl-amber); }
.hptl-proscons-col h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hptl-pc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    flex-shrink: 0;
}
.hptl-proscons-col--pros .hptl-pc-icon { background: var(--hptl-green); }
.hptl-proscons-col--cons .hptl-pc-icon { background: var(--hptl-red); }
.hptl-proscons-col--limits .hptl-pc-icon { background: var(--hptl-amber); }
.hptl-proscons-col ul { margin: 0; padding-inline-start: 18px; }
.hptl-proscons-col li {
    font-size: 14px;
    line-height: 1.55;
    color: var(--hptl-text);
    margin-bottom: 6px;
}

/* ---- הדרכות ---- */

.hptl-tutorial-form {
    background: var(--hptl-card);
    border: 1px solid var(--hptl-border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
}
.hptl-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.hptl-form-row:last-of-type { margin-bottom: 0; }
.hptl-tutorial-form input {
    flex: 1 1 200px;
    font-family: inherit;
    font-size: 14px;
    padding: 9px 14px;
    border: 1px solid rgba(100, 116, 139, 0.25);
    border-radius: 10px;
    outline: none;
}
.hptl-tutorial-form input:focus { border-color: var(--hptl-blue); }
.hptl-tutorial-form input[type="month"] { flex: 0 1 170px; }
.hptl-form-note {
    font-size: 12.5px;
    color: var(--hptl-muted);
    margin: 10px 0 0;
}

.hptl-tutorials-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hptl-tutorial {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--hptl-card);
    border: 1px solid var(--hptl-border);
    border-radius: 12px;
    padding: 10px 14px;
    transition: box-shadow 0.15s ease;
}
.hptl-tutorial:hover { box-shadow: 0 4px 14px rgba(118, 153, 242, 0.14); }

.hptl-tutorial-votes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    flex-shrink: 0;
    min-width: 34px;
}
.hptl-vote {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #b6bfd0;
    padding: 2px 6px;
    line-height: 1;
    transition: color 0.12s ease, transform 0.12s ease;
}
.hptl-vote:hover { color: var(--hptl-blue); transform: scale(1.2); }
.hptl-vote--active.hptl-vote-up { color: var(--hptl-green); }
.hptl-vote--active.hptl-vote-down { color: var(--hptl-red); }
.hptl-tutorial-score {
    font-size: 15px;
    font-weight: 700;
    color: var(--hptl-text);
}
.hptl-score-negative { color: var(--hptl-red); }

.hptl-tutorial-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hptl-tutorial-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--hptl-text) !important;
    text-decoration: none !important;
}
.hptl-tutorial-title:hover { color: var(--hptl-blue) !important; }
.hptl-tutorial-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--hptl-coral);
    color: #fff;
    font-size: 9px;
    margin-inline-end: 4px;
    vertical-align: middle;
}
.hptl-tutorial-meta { font-size: 12.5px; color: var(--hptl-muted); }

.hptl-tutorial-delete {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    flex-shrink: 0;
}
.hptl-tutorial-delete:hover { color: var(--hptl-red); }

/* ---- דוגמאות ---- */

.hptl-examples-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.hptl-examples-filters input[type="search"] { flex: 1 1 180px; }

.hptl-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    transition: opacity 0.2s ease;
}
.hptl-examples-grid.hptl-loading { opacity: 0.45; pointer-events: none; }

.hptl-examples-static {
    margin-top: 18px;
    background: #fffaf5;
    border: 1px solid rgba(251, 130, 85, 0.25);
    border-radius: 14px;
    padding: 16px 20px;
}
.hptl-examples-static h3 { font-size: 15px; margin: 0 0 8px; color: var(--hptl-orange); }
.hptl-examples-static p { margin: 0; font-size: 14px; line-height: 1.6; }

.hptl-example-fallback-card {
    background: var(--hptl-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--hptl-border);
}
.hptl-example-fallback-card img { width: 100%; height: auto; display: block; }
.hptl-example-fallback-card h4 { padding: 10px 14px; margin: 0; font-size: 15px; }

/* ---- סקירות ---- */

.hptl-reviews-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hptl-review {
    background: var(--hptl-card);
    border: 1px solid var(--hptl-border);
    border-radius: 14px;
    padding: 14px 18px;
}
.hptl-review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.hptl-review-avatar img { border-radius: 50%; display: block; }
.hptl-review-author { font-weight: 600; font-size: 14.5px; }
.hptl-review-date { font-size: 12.5px; color: var(--hptl-muted); }
.hptl-review-text { font-size: 14.5px; line-height: 1.65; }
.hptl-review-text p:last-child { margin-bottom: 0; }

.hptl-review-form .comment-respond {
    background: var(--hptl-card);
    border: 1px solid var(--hptl-border);
    border-radius: 14px;
    padding: 18px 22px;
}
.hptl-review-form .comment-reply-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px;
}
.hptl-review-form textarea {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    border: 1px solid rgba(100, 116, 139, 0.25);
    border-radius: 10px;
    padding: 12px;
    outline: none;
    box-sizing: border-box;
}
.hptl-review-form textarea:focus { border-color: var(--hptl-blue); }
.hptl-review-form input[type="submit"],
.hptl-review-form .submit {
    background: linear-gradient(135deg, var(--hptl-orange), var(--hptl-coral));
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 26px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.hptl-login-note { font-size: 14px; color: var(--hptl-muted); }
.hptl-login-note a { color: var(--hptl-blue) !important; }

/* ===================== הכלי המומלץ ל... ===================== */

.hptl-best {
    background: var(--hptl-card);
    border-radius: 18px;
    padding: 22px 24px 26px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(31, 41, 55, 0.06);
}
.hptl-best-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 14px;
}
.hptl-best-card {
    border: 1px solid var(--hptl-border);
    border-radius: 14px;
    padding: 14px;
    background: linear-gradient(135deg, #fff, #f7f9ff);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hptl-best-task {
    font-size: 13px;
    font-weight: 600;
    color: var(--hptl-muted);
}
.hptl-best-winner {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: var(--hptl-text) !important;
    background: #fffdf5;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 12px;
    padding: 8px 12px;
    position: relative;
}
.hptl-best-winner:hover { border-color: var(--hptl-amber); }
.hptl-best-crown { font-size: 18px; }
.hptl-best-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--hptl-blue-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hptl-best-logo .hptl-logo-img { width: 100%; height: 100%; object-fit: contain; padding: 3px; box-sizing: border-box; }
.hptl-best-logo .hptl-logo-letter { font-size: 18px; }
.hptl-best-name { font-weight: 700; font-size: 15px; }
.hptl-best-runners { display: flex; flex-direction: column; gap: 2px; }
.hptl-best-runner {
    font-size: 12.5px;
    color: var(--hptl-muted) !important;
    text-decoration: none !important;
    padding: 1px 4px;
}
.hptl-best-runner:hover { color: var(--hptl-blue) !important; }

/* ===================== הצבעת "הכי טוב למשימה" בעמוד כלי ===================== */

.hptl-task-vote {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    padding: 14px 18px;
    background: #fffdf5;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 14px;
}
.hptl-task-vote-intro { font-weight: 700; font-size: 15px; }
.hptl-task-vote-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hptl-task-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 999px;
    padding: 6px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--hptl-text);
    cursor: pointer;
    transition: all 0.15s ease;
}
.hptl-task-chip:hover { border-color: var(--hptl-amber); transform: translateY(-1px); }
.hptl-task-chip-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #fff;
    font-size: 11px;
    transition: background 0.15s ease;
}
.hptl-task-chip--voted { background: #fff7e6; border-color: var(--hptl-amber); }
.hptl-task-chip--voted .hptl-task-chip-check { background: var(--hptl-amber); }
.hptl-task-chip-score {
    font-weight: 700;
    font-size: 13px;
    color: var(--hptl-orange);
    background: #fff3e0;
    border-radius: 999px;
    padding: 1px 8px;
    min-width: 20px;
    text-align: center;
}

/* ===================== כלי-משנה ===================== */

.hptl-hero-parent {
    display: block;
    font-size: 13px;
    color: var(--hptl-muted);
    margin-bottom: 4px;
}
.hptl-hero-parent a { color: var(--hptl-blue) !important; }
.hptl-breadcrumb-sep { color: var(--hptl-muted); margin: 0 6px; }
.hptl-card-parent {
    display: block;
    font-size: 12px;
    color: var(--hptl-muted);
    margin-bottom: 2px;
}
.hptl-card--child { border-inline-start: 3px solid var(--hptl-blue-mid); }

.hptl-children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.hptl-child-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--hptl-card);
    border: 1px solid var(--hptl-border);
    border-radius: 12px;
    padding: 10px 14px;
    text-decoration: none !important;
    color: var(--hptl-text) !important;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.hptl-child-card:hover { box-shadow: 0 4px 14px rgba(118, 153, 242, 0.16); transform: translateY(-2px); }
.hptl-child-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--hptl-blue-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hptl-child-logo .hptl-logo-img { width: 100%; height: 100%; object-fit: contain; padding: 3px; box-sizing: border-box; }
.hptl-child-logo .hptl-logo-letter { font-size: 16px; }
.hptl-child-name { font-weight: 600; font-size: 14px; }

.hptl-check-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: var(--hptl-muted);
    cursor: pointer;
}

/* ===================== רספונסיב ===================== */

@media (max-width: 640px) {
    .hptl-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    .hptl-hero-title-row { justify-content: center; }
    .hptl-hero-ratings, .hptl-badges, .hptl-hero-chips { justify-content: center; }
    .hptl-archive-filters { padding: 10px; }
    .hptl-filter-select { flex: 1 1 45%; }
    .hptl-rate-widget { width: 100%; justify-content: center; }
    .hptl-form-row { flex-direction: column; }
    .hptl-tutorial-form input[type="month"] { flex: 1 1 auto; }
}
