/* =================================================================== */
/* === קובץ עיצוב "לב צעיר" v3.7 (FIX: Dark Mode Override) === */
/* =================================================================== */

/* --- 1. OVERRIDE: הגדרות כלליות (נוער תמיד בהיר) --- */
/* כל פעם שהגוף הוא theme-youth – דורסים את המשתנים, בלי קשר ל־theme של הליבה */
html[data-skin="youth"],
body.theme-youth {
    --bg: #f7fcff;       /* רקע ראשי בהיר */
    --card-bg: #FFFFFF;  /* רקע כרטיסים בהיר */
    --panel: #E0F7FA;    /* רקע פאנל/שוליים תכלת בהיר */
    --panel-1: #E8F5E9;  /* רקע פאנל ירקרק בהיר */
    --panel-2: #F1F8E9;
    --text: #1A237E;     /* טקסט כהה */
    --text-headings: #00569E; /* כותרות כחול כהה */
    --muted: #4CAF50;    /* טקסט מושתק/עדין */
    --card-border: #B2DFDB; /* גבולות רכים */
    --accent: #FF9800;   /* נשאר זהה */
}

.theme-youth {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Heebo', sans-serif;
    direction: rtl;
    text-align: right;
    font-size: 16px;
}

/* === קונטיינר כללי וריסט בסיסי === */
.theme-youth .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ------------------------------------------------------------- */
/* === S2.8.e: כפתור SOS צף קריטי (Floating Danger Button) === */
/* ------------------------------------------------------------- */
.theme-youth .youth-floating-danger {
    position: fixed;
    bottom: 2rem;
    left: 2rem; 
    z-index: 9999;
    
    /* עיצוב משודרג ל-SOS */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF5252 0%, #FF1744 100%);
    color: #fff;
    font-size: 1.25rem; 
    font-weight: 800; 
    padding: 1.1rem 2.5rem; 
    border-radius: 35px;
    box-shadow: 0 8px 25px rgba(255, 82, 82, 0.7); 
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse-danger 1.5s infinite; 
}

.theme-youth .youth-floating-danger:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(255, 20, 44, 0.9);
}
.theme-youth .youth-floating-danger svg {
    color: #fff !important;
    width: 24px;
    height: 24px;
    margin-inline-end: 10px;
}
/* כפתור החירום - focus מיוחד */
.theme-youth .youth-floating-danger:focus {
    outline: 3px solid #FFD700; 
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.5);
}


/* === סגנון ההדר החדש (מעוצב בהשראה ממומו/טיפו) === */
.theme-youth .youth-header {
    background: linear-gradient(180deg, #E0F7FA 0%, #FFFFFF 100%);
    padding: 1rem 0;
    border-bottom: 4px solid #81D4FA;
    box-shadow: 0 6px 15px rgba(129, 212, 250, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0 0 20px 20px;
}
.theme-youth .youth-header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.theme-youth .youth-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    font-size: 2.2rem;
    font-weight: 900;
    color: #00796B;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.theme-youth .youth-logo img {
    height: 50px;
    width: auto;
}
.theme-youth .youth-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.theme-youth .youth-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    color: #263238;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.7rem 0.5rem;
    border-radius: 18px;
    background-color: #EFEFEF;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-width: 90px;
}
.theme-youth .youth-nav a:hover {
    color: #00796B;
    border-color: #4DB6AC;
    background-color: #FFFFFF;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 121, 107, 0.15);
}
.theme-youth .youth-nav a svg {
    stroke-width: 2.8;
    width: 28px;
    height: 28px;
    transition: color 0.3s ease;
}
.theme-youth .youth-nav a.nav-journey svg { color: #8E24AA; }
.theme-youth .youth-nav a.nav-write svg { color: #00C853; }
.theme-youth .youth-nav a.nav-tools svg { color: #FF9800; }
.theme-youth .youth-nav a.nav-breath svg { color: #2196F3; }

/* [שדרוג]: הסתרת ה-SOS הישן מהניווט */
.theme-youth .youth-nav a.danger-link {
    display: none !important; 
}

/* === KEYFRAMES === */
@keyframes pulse-danger {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 6px 20px rgba(255, 82, 82, 0.5); 
    }
    50% { 
        transform: scale(1.08);
        box-shadow: 0 8px 25px rgba(255, 82, 82, 0.7); 
    }
}
@keyframes wave-animation {
    0% { transform: rotate( 0.0deg) }
    10% { transform: rotate(14.0deg) }
    20% { transform: rotate(-8.0deg) }
    30% { transform: rotate(14.0deg) }
    40% { transform: rotate(-4.0deg) }
    50% { transform: rotate(10.0deg) }
    60% { transform: rotate( 0.0deg) }
    100% { transform: rotate( 0.0deg) }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes breathe {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.01); }
    100% { transform: translateY(0) scale(1); }
}


/* === S4.10.a: נגישות ותנועה (CRITICAL) === */
/* כיבוד העדפת מצב Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .theme-youth * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .theme-youth .youth-floating-danger,
    .theme-youth .youth-welcome-message .youth-header-icon,
    .theme-youth .action-card:hover {
        animation: none !important;
        transform: none !important;
    }
}

/* FOCUS STATES (נגישות מקלדת) */
.theme-youth .youth-nav a:focus,
.theme-youth .button-youth-primary:focus,
.theme-youth .hotline-link:focus,
.theme-youth .youth-floating-danger:focus,
.theme-youth .journey-textarea:focus {
    outline: 3px solid #FF9800;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(255, 152, 0, 0.3);
}

/* === S2-Y (Y.3) - עמוד הבית של "לב צעיר" === */
.theme-youth .youth-welcome-message {
    background-color: var(--card-bg); /* משתמש במשתנים בהירים */
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 121, 107, 0.1);
    color: var(--text); 
    margin-bottom: 2.5rem;
    text-align: center;
    font-size: 1.3rem;
    line-height: 1.7;
    border: 1px solid var(--card-border);
}
.theme-youth .youth-welcome-message .youth-header-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    animation: wave-animation 2.5s infinite;
}
.theme-youth .youth-welcome-message h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-headings);
    margin: 0 0 0.5rem 0;
}
.theme-youth .youth-welcome-message p {
    margin: 0;
    font-weight: 500;
    font-size: 1.15rem;
}
.theme-youth .youth-welcome-message .youth-brand-name,
.theme-youth .youth-welcome-message strong {
    color: #00796B;
    font-weight: 700;
}
/* גשר הסכנה - Hotlines */
.theme-youth .danger-bridge-box-v2 {
    display: flex; align-items: center; gap: 1.5rem;
    background: #c0392b; color: #ffffff;
    border-radius: 12px; padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(192, 57, 43, 0.4);
}
.theme-youth .danger-bridge-icon { flex-shrink: 0; }
.theme-youth .danger-bridge-icon .feather { width: 36px; height: 36px; stroke-width: 2.5; }
.theme-youth .danger-bridge-content { text-align: right; flex-grow: 1; }
.theme-youth .danger-bridge-content h3 { font-size: 1.25rem; font-weight: 700; color: #ffffff; margin: 0 0 0.25rem 0; }
.theme-youth .danger-bridge-content p { font-size: 1rem; margin: 0; line-height: 1.6; opacity: 0.95; }
.theme-youth .danger-bridge-links { display: flex; flex-direction: column; gap: 0.75rem; flex-shrink: 0; }
.theme-youth .hotline-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: #c0392b;
    font-weight: 800;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    transition: all 0.2s ease;
    min-width: 160px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.theme-youth .hotline-link strong { display: block; font-size: 1.3rem; }
.theme-youth .hotline-link span { font-size: 0.8rem; font-weight: 500; }
/* [שדרוג]: הוספת אייקון טלפון (קלוד) */
.theme-youth .hotline-link::before {
    content: '📞';
    font-size: 1.5rem;
    margin-inline-end: 0.5rem;
}
.theme-youth .action-node-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.theme-youth .action-card {
    display: block; text-decoration: none;
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 18px; padding: 1.5rem;
    text-align: right;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom-width: 5px;
    box-shadow: 0 4px 12px rgba(0, 121, 107, 0.05);
}
.theme-youth .action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 121, 107, 0.1);
}
.theme-youth .action-card-icon { font-size: 2.5rem; line-height: 1; margin-bottom: 1rem; }
.theme-youth .action-card h3 { font-size: 1.3rem; font-weight: 700; color: #00569E; margin: 0 0 0.5rem 0; }
.theme-youth .action-card p { font-size: 0.95rem; color: var(--text); line-height: 1.6; margin: 0; }
.theme-youth .action-card.color-1 { border-bottom-color: #00C853; }
.theme-youth .action-card.color-2 { border-bottom-color: #8E24AA; }
.theme-youth .action-card.color-3 { border-bottom-color: #FF9800; }
.theme-youth .action-card.color-4 { border-bottom-color: #2196F3; }
.theme-youth .action-card.is-disabled {
    opacity: 0.7; background: #f0f0f0;
    pointer-events: none; box-shadow: none;
}
.theme-youth .action-card.is-disabled h3 { text-decoration: line-through; color: #999; }
.theme-youth .action-card.is-disabled p { color: #999; }

/* === S2-Y (Y.2) - עיצוב שער הכניסה (Gate) === */
.theme-youth .youth-gate-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 2rem 1rem;
}
.theme-youth .youth-gate-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 121, 107, 0.1);
    border-bottom: 5px solid #00B0FF;
}
.theme-youth .youth-gate-icon {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #FFC107;
}
.theme-youth .youth-gate-box h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-headings);
}
.theme-youth .youth-brand-name {
    color: #00796B;
    font-weight: 700;
}
.theme-youth .gate-intro {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 2rem;
}
.theme-youth .safety-rules {
    text-align: right;
    background: var(--panel-1);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.theme-youth .safety-rules h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #004D40;
}
.theme-youth .safety-rules ul {
    list-style-type: none;
    padding-right: 0;
    margin: 0;
}
.theme-youth .safety-rules li {
    position: relative;
    padding-right: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text); 
}
.theme-youth .safety-rules li:last-child {
    margin-bottom: 0;
}
.theme-youth .safety-rules li::before {
    content: '✔';
    position: absolute;
    right: 0;
    top: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.1rem;
}
.theme-youth .gate-form {
    margin-top: 1.5rem;
}
.theme-youth .form-check-group {
    text-align: right;
    margin-bottom: 1.25rem;
}
.theme-youth .form-check-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
}
.theme-youth .form-check-label input[type="checkbox"] {
    width: 1.5em;
    height: 1.5em;
    flex-shrink: 0;
    accent-color: #00796B;
}
.theme-youth .button-youth-primary {
    background-color: #00C853;
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}
.theme-youth .button-youth-primary:hover {
    background-color: #00796B;
    transform: scale(1.02);
}
.theme-youth .form-error-summary {
    background: #FFCDD2;
    border: 1px solid #E57373;
    color: #D32F2F;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: right;
}
.theme-youth .form-error-summary ul {
    margin: 0.5rem 0 0;
    padding-right: 1.25rem;
}

/* ========================================================== */
/* ★★★ [חדש] S2-Y (Y.5) - עיצוב "המסע אליי" (Journey) ★★★ */
/* ========================================================== */
.theme-youth .journey-container {
    max-width: 700px;
    margin: 2rem auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 121, 107, 0.1);
    border: 1px solid var(--card-border);
    padding: 1rem;
    overflow: hidden;
}
.theme-youth .journey-header {
    text-align: center;
    padding: 1.5rem 1rem 2rem 1rem;
    border-bottom: 2px dashed #B2DFDB;
}
.theme-youth .journey-header h1 {
    font-size: 2.5rem;
    color: #00796B;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
}
.theme-youth .journey-header p {
    font-size: 1.15rem;
    color: var(--text);
    margin: 0;
}
.theme-youth .journey-path {
    padding: 1.5rem;
}
.theme-youth .journey-card {
    display: none;
    padding: 1.5rem;
    animation: fadeIn 0.5s ease-in-out;
    text-align: center;
}
.theme-youth .journey-card.active {
    display: block;
}
.theme-youth .journey-card h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #00569E;
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
}
.theme-youth .journey-card p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}
.theme-youth .journey-textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 12px;
    border: 2px solid #B3E5FC;
    background: #f7fcff;
    color: var(--text);
    min-height: 140px;
    transition: all 0.2s ease;
}
.theme-youth .journey-textarea:focus {
    outline: none;
    border-color: #8E24AA;
    box-shadow: 0 0 10px rgba(142, 36, 170, 0.2);
}
.theme-youth .journey-actions {
    margin-top: 1.5rem;
    text-align: center;
}
.theme-youth .btn-journey-next,
.theme-youth .btn-journey-finish {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.theme-youth .btn-journey-next {
    background-color: #8E24AA;
    box-shadow: 0 4px 12px rgba(142, 36, 170, 0.3);
}
.theme-youth .btn-journey-next:hover {
    background-color: #6A1B9A;
    transform: scale(1.05);
}
.theme-youth .btn-journey-finish {
    background-color: #00C853;
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}
.theme-youth .btn-journey-finish:hover {
    background-color: #00796B;
    transform: scale(1.05);
}
.theme-youth .btn-journey-next svg {
    width: 20px;
    height: 20px;
}
/* ... שאר Journey Keyframes ... */

/* ========================================================== */
/* ★★★ [חדש] S2-Y (Y.5) - עיצוב "כתיבה חופשית" (Write) ★★★ */
/* ========================================================== */

.theme-youth .youth-write-container {
    max-width: 800px;
    margin: 2rem auto;
}
.theme-youth .youth-page-header {
    text-align: center;
    padding: 1rem 0 2.5rem 0;
    border-bottom: 2px dashed #B2DFDB; /* קו הפרדה ירקרק */
    margin-bottom: 2rem;
}
.theme-youth .youth-header-icon {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #00C853; /* ירוק תואם לכפתור בהדר */
}
.theme-youth .youth-page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #00569E;
    margin: 0 0 0.5rem 0;
}
.theme-youth .youth-page-header p {
    font-size: 1.15rem;
    color: var(--text); 
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Styles */
.theme-youth .youth-write-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 20px rgba(0, 121, 107, 0.1);
}
.theme-youth .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.theme-youth .form-group {
    display: flex;
    flex-direction: column;
}
.theme-youth .form-group label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #004D40; /* ניגודיות משופרת */
    margin-bottom: 0.75rem;
}

/* Styling for inputs, textareas, AND the custom trigger */
.theme-youth .form-group input[type="text"],
.theme-youth .form-group textarea,
.theme-youth .custom-select-trigger {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 12px;
    border: 2px solid #B3E5FC;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.theme-youth .form-group textarea {
    resize: vertical;
    min-height: 180px;
}

.theme-youth .form-group input[type="text"]:focus,
.theme-youth .form-group textarea:focus,
.theme-youth .custom-select-wrapper.open .custom-select-trigger {
    outline: 3px solid #FF9800; /* [שדרוג]: Focus State בולט */
    border-color: #00C853;
    box-shadow: 0 0 10px rgba(0, 200, 83, 0.2);
}

/* [שדרוג]: Validation ויזואלית */
.theme-youth .form-group input:invalid,
.theme-youth .form-group textarea:invalid {
    border-color: #FF5252;
}
.theme-youth .form-group input:valid,
.theme-youth .form-group textarea:valid {
    border-color: #00C853;
}
.theme-youth .form-group input::placeholder,
.theme-youth .form-group textarea::placeholder {
    color: #81D4FA;
    font-style: italic;
    opacity: 0.8;
}

/* Custom Dropdown Specifics */
.theme-youth .custom-select-wrapper {
    position: relative;
}
.theme-youth .custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.theme-youth .custom-select-trigger .prefix-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.theme-youth .custom-select-trigger svg {
    color: #81D4FA;
    transition: transform 0.2s ease;
}
.theme-youth .custom-select-wrapper.open .custom-select-trigger svg {
    transform: rotate(180deg);
}
.theme-youth .custom-select-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    border: 2px solid #00C853;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    list-style: none;
    padding: 0.5rem;
    margin: 0;
}
.theme-youth .custom-select-wrapper.open .custom-select-options {
    display: block;
}
.theme-youth .custom-select-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 8px;
}
.theme-youth .custom-select-option:hover {
    background-color: var(--panel-1);
}
.theme-youth .custom-select-option.selected {
    background-color: #C8E6C9;
    font-weight: bold;
}

/* Form Actions */
.theme-youth .form-actions {
    margin-top: 2rem;
    text-align: center;
}
.theme-youth .button-youth-primary {
    background-color: #00C853;
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}
.theme-youth .button-youth-primary:hover {
    background-color: #00796B;
    transform: scale(1.05);
}
.theme-youth .form-privacy-notice {
    text-align: center;
    font-size: 0.95rem;
    color: #4CAF50;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}
.theme-youth .form-privacy-notice svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Success/Error Messages */
.theme-youth .youth-form-success,
.theme-youth .youth-form-errors {
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: right;
    font-weight: 500;
}
.theme-youth .youth-form-success {
    background: var(--panel-1);
    border: 2px solid #C8E6C9;
    color: #004D40;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}
.theme-youth .youth-form-success svg {
    width: 32px;
    height: 32px;
    color: #00C853;
}
.theme-youth .youth-form-success .button-link {
    font-size: 1rem;
    font-weight: 700;
    color: #004D40;
    text-decoration: underline;
    background: #C8E6C9;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}
.theme-youth .youth-form-success .button-link:hover {
    background: #00C853;
    color: #fff;
}
.theme-youth .youth-form-errors {
    background: #FFCDD2;
    border: 2px solid #E57373;
    color: #D32F2F;
}
.theme-youth .youth-form-errors ul {
    margin: 0.5rem 0 0;
    padding-right: 1.25rem;
}
/* ========================================================== */
/* ★★★ סוף עיצוב "כתיבה חופשית" ★★★ */
/* ========================================================== */


/* הסתרת אלמנטים מהאתר הרגיל (כמו ב-v2) */
.theme-youth .floating-action-buttons,
.theme-youth #back-to-top {
    display: none !important;
}

/* === הפוטר החדש (עם איורי SVG ואייקונים צבעוניים) === */
.theme-youth .youth-footer {
    background: linear-gradient(180deg, var(--panel-1) 0%, var(--panel) 100%);
    padding: 4rem 0 2rem 0;
    border-top: 4px solid #81D4FA;
    color: #004D40;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}
.theme-youth .footer-svg-illustration {
    position: absolute; width: 120px; height: auto;
    opacity: 0.8; pointer-events: none;
    transition: transform 0.3s ease-out; z-index: 1;
    animation: breathe 10s infinite alternate; /* [שדרוג]: תנועת נשימה פסיכולוגית */
}
.theme-youth .footer-svg-illustration.boy {
    top: -30px; left: 20px;
    transform: rotate(-5deg); fill: #FFECB3;
}
.theme-youth .footer-svg-illustration.girl {
    bottom: -20px; right: 15px;
    transform: rotate(8deg); fill: #FFCDD2;
}
.theme-youth .youth-footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem; max-width: 1000px;
    margin: 0 auto 3rem auto;
    position: relative; z-index: 2;
}
.theme-youth .youth-footer-column h4 {
    display: flex; align-items: center;
    gap: 0.9rem; font-size: 1.6rem;
    color: #00796B; margin-top: 0;
    margin-bottom: 1.8rem;
    text-shadow: 0.5px 0.5px 1px rgba(0,0,0,0.05);
}
.theme-youth .youth-footer-column h4 svg {
    color: #4DB6AC; stroke-width: 3;
    width: 30px; height: 30px;
}
.theme-youth .youth-footer-links {
    list-style: none; padding: 0;
    margin: 0; display: grid;
    gap: 1.2rem;
}
.theme-youth .youth-footer-links a {
    display: flex; align-items: center;
    gap: 0.9rem; text-decoration: none;
    color: var(--text); 
    font-size: 1.15rem;
    font-weight: 600; transition: all 0.2s ease;
}
.theme-youth .youth-footer-links a:hover {
    color: #00796B;
    transform: translateX(-5px);
}
.theme-youth .youth-footer-links a:hover svg {
    color: #00796B;
}
.theme-youth .youth-footer-links svg {
    stroke-width: 2.5;
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
}
.theme-youth .footer-links-tools a .feather-compass { color: #8E24AA; }
.theme-youth .footer-links-tools a .feather-edit-3 { color: #00C853; }
.theme-youth .footer-links-tools a .feather-archive { color: #FF9800; }
.theme-youth .footer-links-tools a .feather-wind { color: #2196F3; }
.theme-youth .footer-links-support a .feather-users { color: #4CAF50; }
.theme-youth .footer-links-support a[href*="urgent-help"] .feather-life-buoy { color: #F44336; }
.theme-youth .footer-links-support a[href*="tel:105"] .feather-shield { color: #3F51B5; }
.theme-youth .footer-links-support a[href*="tel:1201"] .feather-phone { color: #FFC107; }
.theme-youth .youth-footer .copyright {
    text-align: center; margin: 0;
    padding-top: 2.5rem;
    border-top: 1px dashed #B2DFDB;
    opacity: 0.9;
    font-size: 1rem;
    color: var(--muted);
}

/* === מדיה קוורייס להתאמה למסכים קטנים (הגדלת טקסט כללית) === */
@media (max-width: 992px) {
    .theme-youth .youth-header-grid { flex-direction: column; gap: 1.5rem; }
    .theme-youth .youth-nav { flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
    .theme-youth .youth-nav a { min-width: 75px; padding: 0.5rem 0.3rem; font-size: 0.85rem; }
    .theme-youth .youth-nav a svg { width: 24px; height: 24px; }
    .theme-youth .youth-footer-grid { grid-template-columns: 1fr; text-align: center; }
    .theme-youth .youth-footer-column h4 { justify-content: center; }
    .theme-youth .youth-footer-links { justify-content: center; align-items: center; }
}
@media (max-width: 768px) {
    .theme-youth .danger-bridge-box-v2 { flex-direction: column; text-align: center; gap: 1rem; }
    .theme-youth .danger-bridge-content { text-align: center; }
    .theme-youth .danger-bridge-links { flex-direction: row; width: 100%; justify-content: center; }
    .theme-youth .hotline-link { flex-grow: 1; }
    .theme-youth .journey-container { max-width: 100%; margin: 1rem auto; }
}
@media (max-width: 576px) {
    .theme-youth {
        font-size: 18px; /* [שדרוג] */
    }
    .theme-youth .youth-logo { font-size: 1.8rem; }
    .theme-youth .youth-logo img { height: 40px; }
    .theme-youth .youth-nav a { min-width: 65px; font-size: 0.95rem; } /* [שדרוג] */
    .theme-youth .youth-nav a svg { width: 20px; height: 20px; }
    .theme-youth .youth-floating-danger {
        font-size: 1.15rem;
        padding: 0.9rem 2rem;
    }
    .theme-youth .youth-footer-column h4 { font-size: 1.3rem; }
    .theme-youth .youth-footer-links a { font-size: 1rem; }
    .theme-youth .youth-gate-box { padding: 2rem 1.5rem; }
    .theme-youth .form-check-label { font-size: 1rem; }
    .theme-youth .journey-card h2 { font-size: 1.6rem; }
    .theme-youth .journey-textarea { min-height: 120px; }
    .theme-youth .btn-journey-next, .theme-youth .btn-journey-finish { width: 100%; }
    .theme-youth .youth-write-form { padding: 2rem 1.5rem; }
}

/* ========================================================== */
/* ★★★ [הוספה] שדרוג עיצוב הקומונות (Y.1.b) ★★★ */
/* ========================================================== */

/* * שדרוג זה "דורס" את העיצוב הכללי של הקומונות
 * ומתאים אותו לעיצוב של "לב צעיר" כאשר
 * גולשים בקומונה עם .theme-youth
 */

/* 1. הסתרת הכותרת הכללית (כפילות) - ביטול display: none */
.theme-youth .page-header {
    /* נשאר כפי שהיה ב-view, לכן לא צריך override כאן */
}

/* 2. התאמת סרגל הניווט של הקומונות */
.theme-youth .komunot-controls {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px; 
    box-shadow: 0 4px 12px rgba(0, 121, 107, 0.05);
    padding: 0.75rem;
}

.theme-youth .komunot-nav-tabs a {
    color: #00796B; /* צבע טקסט ירקרק */
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 14px; 
    border: 2px solid transparent;
}

/* כפתור פעיל */
.theme-youth .komunot-nav-tabs a.active {
    background-color: var(--panel);
    color: #004D40;
    border-color: #81D4FA; /* גבול תכלת */
    box-shadow: none;
}

/* הובר על כפתור לא פעיל */
.theme-youth .komunot-nav-tabs a:not(.active):hover {
    background-color: var(--bg);
    color: #004D40;
}

/* 3. כפתור "כתוב ניצוץ חדש" */
/* אנו משתמשים בכפתור מהעיצוב של לב צעיר במקום .btn-primary */
.theme-youth .komunot-controls .btn-primary {
    background-color: #00C853;
    color: #fff;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}
.theme-youth .komunot-controls .btn-primary:hover {
    background-color: #00796B;
    transform: scale(1.05);
}

/* 4. רשימת השרשורים */
.theme-youth .thread-list-container {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px; 
    box-shadow: 0 8px 30px rgba(0, 121, 107, 0.08);
}

/* [עדכון] שינוי רקע הכותרת */
.theme-youth .thread-list-header {
    background-color: var(--panel); /* רקע תואם לנוער */
    color: #00796B; /* צבע טקסט תואם */
}

.theme-youth .thread-card {
    /* עיצוב רך יותר לכרטיסים */
    background-color: var(--bg);
    border-bottom: 2px dashed #E0F7FA; /* קו הפרדה מקווקו */
    padding: 1.25rem 1.5rem;
}
.theme-youth .thread-card:hover {
    background-color: var(--card-bg);
}
.theme-youth .thread-card.is-sticky {
    background-color: var(--panel-1); /* שימוש במשתנה למרקם עדין */
    border-bottom-style: solid;
    border-bottom-color: #FFECB3;
}

/* 5. התאמת הפונטים והטקסט */
.theme-youth .thread-title {
    font-size: 1.2rem; 
    color: #00569E; 
}
.theme-youth .thread-card:hover .thread-title {
    color: #00796B; 
}

.theme-youth .thread-meta {
    font-size: 0.95rem;
    color: var(--muted); 
}
.theme-youth .thread-meta .author-name {
    color: #00796B; 
    font-weight: 700;
}

/* 6. התאמת הסטטיסטיקה */
.theme-youth .thread-stats {
    color: #00796B;
}
.theme-youth .thread-stats .stat-number {
    font-weight: 800;
    font-size: 1.1rem;
    color: #004D40;
}

/* 7. התאמת תגובה אחרונה */
.theme-youth .thread-last-post {
    font-size: 0.9rem;
    color: var(--muted);
}
.theme-youth .thread-last-post .last-author {
    color: #004D40;
    font-weight: 700;
}

/* ========================================================== */
/* ★★★ [NEW] Y.8 - ארגז כלים אישי (/youth/toolbox) ★★★ */
/* ========================================================== */

.theme-youth .youth-toolbox-container {
    max-width: 1000px;
    margin: 2rem auto;
}

.theme-youth .toolbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.theme-youth .tool-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--card-bg);
    border: 3px solid; /* הגבול הופך לצבעוני */
    border-radius: 20px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.theme-youth .tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: var(--panel-1); /* שינוי רקע קל בהובר */
}

.theme-youth .tool-icon {
    flex-shrink: 0;
    font-size: 2.5rem;
    line-height: 1;
    padding: 10px;
    border-radius: 50%;
    background-color: var(--panel);
}

.theme-youth .tool-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-headings);
    margin: 0 0 0.5rem 0;
}

.theme-youth .tool-card p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

/* סגנונות ספציפיים לאזור הדינמי */
.theme-youth #toolbox-dynamic-area {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 3rem;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* ============================================== */
/* == S2-Y (Y.17) - עמוד תמיכה (גרסה נקייה וסופית) == */
/* ============================================== */

/* * הערה:
 * העיצוב של הכותרת (.youth-page-header) והכפתור (.danger-bridge-box-v2)
 * נטען אוטומטית מה-CSS הקיים בקובץ זה.
 * הקוד הבא מטפל רק ברכיבים החדשים (FAQ ו-Dropdown).
*/

/* --- 1. עיצוב רכיב ה-FAQ (החדש) --- */
.faq-section {
  margin-top: 2.5rem; /* ריווח אחרי תיבת ה-SOS */
  margin-bottom: 2.5rem;
}
.faq-section h2 {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-headings); /* שימוש במשתנה מהעיצוב הקיים */
  margin-bottom: 1.5rem;
  text-align: center;
}
.faq-item {
    background-color: var(--card-bg); /* שימוש במשתנה מהעיצוב הקיים */
    border: 1px solid var(--card-border); /* שימוש במשתנה מהעיצוב הקיים */
    border-right-width: 5px;
    border-right-color: #009688; /* צבע הטורקיז שאהבת */
    border-radius: 8px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
}
.faq-item h4 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-headings); /* שימוש במשתנה מהעיצוב הקיים */
}
.faq-item p {
  margin: 0;
  line-height: 1.7;
  color: var(--text); /* שימוש במשתנה מהעיצוב הקיים */
}
.faq-item p + p {
    margin-top: 1rem;
}
.faq-item p a {
    color: var(--accent); /* שימוש במשתנה מהעיצוב הקיים */
    font-weight: 600;
    text-decoration: underline;
}
.faq-item p a:hover {
    color: #00796B;
}

/* קו הפרדה */
hr.section-divider {
    border: 0;
    height: 1px;
    background-color: #E0E0E0;
    margin: 2.5rem 0;
}


/* --- 2. תיקון Dropdown בטופס --- */

/* ודא שה-select בטופס נראה טוב */
.youth-support-page .custom-select-wrapper select.form-control {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 12px;
    border: 2px solid #B3E5FC; /* תואם ל-input ב-youth-write */
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    -webkit-appearance: none; 
    -moz-appearance: none;
    appearance: none;
    /* הוספת חץ מותאם אישית */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300796B%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-13%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2013l128%20128c3.6%203.6%207.8%205.4%2013%205.4s9.4-1.8%2013-5.4l128-128c3.6-3.6%205.4-7.8%205.4-13%200-5-1.8-9.4-5.4-13z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 12px;
    padding-left: 3rem; 
}
/* תיקון עיצוב ה-select בתוך ה-wrapper של הטופס הכללי */
.youth-support-page .youth-write-form .form-group .custom-select-wrapper {
     padding: 0;
     border: none;
     background: none;
}
.youth-support-page .youth-write-form .form-group .custom-select-wrapper:focus-within {
     outline: none;
     box-shadow: none;
     border: none;
}
/* ========================================================== */
/* ★★★ [FIX] Y.17 - תיקון סופי לכפתור SOS וכותרת ★★★ */
/* ========================================================== */

/* 1. תיקון כפתור "עזרה דחופה" (Danger Bridge)
 * הוספנו flex-direction: column כדי שהטקסט ירד שורה.
 */
.theme-youth .danger-bridge-box-v2 .hotline-link {
    flex-direction: column;
    gap: 0.25rem; /* צמצום רווח קטן בין השורות */
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* 2. (גיבוי) וידוא יישור הכותרת (💡) למרכז
 * מוודא שהכותרת הראשית (💡) והטקסט תמיד ממורכזים.
 */
.theme-youth .youth-page-header {
    text-align: center;
}
.theme-youth .youth-page-header .youth-header-icon {
    margin-right: auto;
    margin-left: auto;
}


/* ========================================================== */
/* ★★★ [FIX] תיקון כפוי להודעות מערכת (שיהיו לבנות!) ★★★ */
/* ========================================================== */

/* דריסה של הודעות המערכת והבועות - הופך ללבן/ירוק */
.theme-youth .alert,
.theme-youth .system-message,
.theme-youth .site-notice,
.theme-youth .thread-locked-message,
.theme-youth .admin-notice-inline {
    background-color: #ffffff !important;
    color: #004D40 !important;
    border: 1px solid #80CBC4 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

/* דריסה של הטקסט בתוך ההודעות */
.theme-youth .alert *,
.theme-youth .system-message *,
.theme-youth .site-notice *,
.theme-youth .thread-locked-message *,
.theme-youth .admin-notice-inline * {
    color: #00695C !important;
}

/* תיקון ספציפי לכותרות בקומונות */
.theme-youth .komunot-container .page-header h1 {
    color: #00796B !important;
    text-shadow: none !important;
}

/* וידוא שהרקע הכללי נשאר בהיר */
.theme-youth.site-body {
    background-color: #f7fcff !important;
    color: #1A237E !important;
}



/* ========================================================== */
/* ★★★ [S3.10.d] התאמת עמוד הצוות לעיצוב "לב צעיר" ★★★ */
/* ========================================================== */

/* 1. קונטיינר וכותרת */
.theme-youth .team-container {
    font-family: 'Heebo', sans-serif;
}

/* התאמת הכותרת הראשית לסגנון הנוער */
.theme-youth .page-header {
    background: linear-gradient(180deg, #E0F7FA 0%, #FFFFFF 100%);
    border-bottom: 4px solid #81D4FA;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(129, 212, 250, 0.15);
    padding: 2.5rem 1rem;
}
.theme-youth .page-header h1 {
    color: #00796B; /* ירוק-טורקיז כהה */
    font-weight: 900;
    text-shadow: none;
}
.theme-youth .page-header .page-lead {
    color: #455A64; /* אפור-כחלחל */
    font-weight: 500;
}
.theme-youth .page-header .page-icon {
    color: #FF9800; /* אייקון כתום בולט */
}

/* 2. כותרות תפקידים (Role Headers) */
.theme-youth .role-header {
    background-color: #FFFFFF;
    color: var(--role-color); /* שומר על צבע הדרגה המקורי */
    border: 2px solid var(--role-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-family: 'Heebo', sans-serif;
    padding: 0.6rem 2rem;
}

/* 3. כרטיסי צוות (Cards) - המהפך הגדול */
.theme-youth .team-member-card {
    background-color: #FFFFFF;
    border: 1px solid #B2DFDB; /* גבול עדין */
    border-top-width: 5px; /* פס עליון עבה */
    border-radius: 20px;
    box-shadow: 0 6px 15px rgba(0, 121, 107, 0.05);
}

.theme-youth .team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 121, 107, 0.15);
    border-color: #80CBC4;
}

/* התאמת צבעי טקסט בכרטיס */
.theme-youth .team-member-info .name {
    /* מחקנו את שורת הצבע הכפוי כדי שהצבע מה-PHP ינצח */
    font-family: 'Heebo', sans-serif;
    font-size: 1.3rem; /* טיפה גדול יותר לנוער */
}

.theme-youth .team-member-info .subtitle {
    color: #546E7A !important;
    font-weight: 500;
}

/* 4. אווטאר (Avatar) */
.theme-youth .team-member-avatar, 
.theme-youth .avatar-placeholder {
    border-color: #FFFFFF; /* מסגרת לבנה נקייה */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #F1F8E9; /* רקע ירקרק בהיר אם אין תמונה */
}

/* 5. סטטוס (Pulse) - התאמה לצבעי הנוער */
.theme-youth .status-indicator .dot {
    border-color: #FFFFFF; /* הפרדה לבנה מהרקע */
}
.theme-youth .status-indicator.online .dot {
    background-color: #00C853; /* ירוק חי של הנוער */
}
.theme-youth .status-indicator.online .pulse-ring {
    background-color: rgba(0, 200, 83, 0.5);
}

/* 6. כרטיס רחף (Hover Card) */
.theme-youth .hover-card {
    background-color: #FFFFFF;
    border: 2px solid #4DB6AC;
    color: #37474F;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.theme-youth .hover-card::before {
    border-left-color: #4DB6AC; /* צבע החץ */
}
.theme-youth .hover-row strong {
    color: #00796B;
}
.theme-youth .hover-row span {
    color: #37474F;
}

/* 7. פירורי לחם */
.theme-youth .breadcrumbs a { color: #78909C; }
.theme-youth .breadcrumbs a:hover { color: #FF9800; }
.theme-youth .breadcrumbs span { color: #004D40; }




