/* עיצוב דף ההחייאה - מעודכן */

/* כותרת ראשית */
.cpr-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #0a6ebd 0%, #0f4c81 100%);
    color: white;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(10, 110, 189, 0.2);
}

.cpr-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.2rem;
}

.cpr-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.alert-box {
    background: rgba(255, 255, 255, 0.2);
    border-left: 4px solid #ffc107;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.emergency-alert {
    background: rgba(220, 53, 69, 0.2);
    border-left-color: #dc3545;
    font-weight: bold;
}

/* קיצור דרך מהיר */
.quick-guide {
    margin-bottom: 2.5rem;
}

.quick-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.quick-step {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border-top: 4px solid;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.quick-step.safety { border-top-color: #ffc107; }
.quick-step.consciousness { border-top-color: #0d6efd; }
.quick-step.assessment { border-top-color: #28a745; }
.quick-step.cpr { border-top-color: #dc3545; }

.quick-step i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.quick-step.safety i { color: #ffc107; }
.quick-step.consciousness i { color: #0d6efd; }
.quick-step.assessment i { color: #28a745; }
.quick-step.cpr i { color: #dc3545; }

.quick-step h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
}

.quick-step p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* בחירת תרחיש */
.scenario-selector {
    margin-bottom: 2.5rem;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.scenario-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.scenario-card:hover {
    transform: translateY(-5px);
    border-color: #0a6ebd;
    box-shadow: 0 8px 20px rgba(10, 110, 189, 0.15);
}

.scenario-card.active {
    border-color: #0a6ebd;
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    box-shadow: 0 8px 20px rgba(10, 110, 189, 0.2);
}

.scenario-icon {
    font-size: 2.5rem;
    color: #0a6ebd;
    margin-bottom: 1rem;
}

.scenario-card h3 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.scenario-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* תצוגת פרוטוקול */
.protocol-display {
    background: white;
    border-radius: 14px;
    padding: 1.8rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.protocol-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f3f4;
}

.aed-toggle {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.aed-toggle span {
    font-weight: 500;
    color: #495057;
}

.toggle-btn {
    padding: 0.5rem 1.2rem;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background: #0a6ebd;
    color: white;
    border-color: #0a6ebd;
}

.toggle-btn:hover:not(.active) {
    background: #f8f9fa;
    border-color: #adb5bd;
}

/* שלבי פרוטוקול */
.protocol-steps {
    counter-reset: step-counter;
}

.protocol-step {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.2rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #0a6ebd;
    transition: all 0.3s ease;
}

.protocol-step.current {
    background: #e3f2fd;
    border-left-color: #dc3545;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.1);
}

.protocol-step.completed {
    background: #d4edda;
    border-left-color: #28a745;
}

.protocol-step:before {
    counter-increment: step-counter;
    content: counter(step-counter);
    background: #0a6ebd;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.protocol-step.current:before {
    background: #dc3545;
}

.protocol-step.completed:before {
    background: #28a745;
}

.step-content h4 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.step-content p {
    margin: 0;
    color: #495057;
}

/* הנחיות בטיחות */
.safety-instructions {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 2px solid #ffc107;
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.safety-item {
    text-align: center;
    padding: 1rem;
}

.safety-item i {
    font-size: 2rem;
    color: #0a6ebd;
    margin-bottom: 0.8rem;
    display: block;
}

.safety-item h4 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.safety-item p {
    color: #495057;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* טיימר */
.cpr-timer {
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 2px solid #cfe2ff;
}

.timer-display {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.time-box {
    text-align: center;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    min-width: 80px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.time-box span {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0a6ebd;
    display: block;
    line-height: 1;
}

.time-box small {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.timer-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.start-btn {
    background: #28a745;
    color: white;
}

.start-btn:hover {
    background: #218838;
}

.pause-btn {
    background: #ffc107;
    color: #212529;
}

.pause-btn:hover {
    background: #e0a800;
}

.reset-btn {
    background: #6c757d;
    color: white;
}

.reset-btn:hover {
    background: #5a6268;
}

.timer-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.reminders {
    background: white;
    padding: 1.2rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.reminders h4 {
    margin-top: 0;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reminders ul {
    margin: 0;
    padding-right: 1.2rem;
}

.reminders li {
    margin-bottom: 0.5rem;
    color: #6c757d;
}

/* הערכת מטופל מפורטת */
.assessment-details {
    background: white;
    border-radius: 14px;
    padding: 1.8rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.assessment-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f1f3f4;
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.7rem 1.2rem;
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #e9ecef;
}

.tab-btn.active {
    background: #0a6ebd;
    color: white;
}

.tab-content {
    display: none;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.tab-content.active {
    display: block;
}

.age-comparison, .breathing-technique, .pulse-locations, .reporting-protocol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.age-group, .technique-step, .pulse-method {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.age-group h4, .technique-step h4, .pulse-method h4 {
    margin-top: 0;
    color: #0a6ebd;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f3f4;
}

.age-group ol, .technique-step ol, .pulse-method ul, .reporting-protocol ol {
    padding-right: 1.5rem;
    margin: 1rem 0 0 0;
}

.age-group li, .technique-step li, .pulse-method li, .reporting-protocol li {
    margin-bottom: 0.8rem;
    color: #495057;
}

.breathing-rates, .pulse-rates {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.breathing-rates h4, .pulse-rates h4 {
    margin-top: 0;
    color: #0a6ebd;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f3f4;
}

/* טכניקת עיסויים והנשמות */
.technique-section {
    background: white;
    border-radius: 14px;
    padding: 1.8rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.technique-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.technique-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid #0a6ebd;
}

.technique-card h3 {
    margin-top: 0;
    color: #0a6ebd;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.technique-card ul {
    margin: 1rem 0 0 0;
    padding-right: 1.5rem;
}

.technique-card li {
    margin-bottom: 0.5rem;
    color: #495057;
    line-height: 1.5;
}

.team-protocol {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 2px solid #0a6ebd;
}

.team-roles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.role {
    background: white;
    padding: 1.2rem;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.role h4 {
    margin-top: 0;
    color: #0a6ebd;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f3f4;
}

.role p {
    color: #495057;
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
    line-height: 1.6;
}

/* טבלת השוואה */
.comparison-table {
    background: white;
    border-radius: 14px;
    padding: 1.8rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.table-responsive {
    overflow-x: auto;
    margin-top: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

table thead {
    background: linear-gradient(135deg, #0a6ebd 0%, #0f4c81 100%);
    color: white;
}

table th {
    padding: 1rem;
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
    vertical-align: top;
}

table tbody tr:hover {
    background: #e3f2fd;
}

/* משאבים */
.resources {
    background: white;
    border-radius: 14px;
    padding: 1.8rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.resource-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.resource-card:hover {
    border-color: #0a6ebd;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(10, 110, 189, 0.15);
}

.resource-card i {
    font-size: 2.5rem;
    color: #0a6ebd;
    margin-bottom: 1rem;
}

.resource-card h4 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.resource-card p {
    color: #6c757d;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.download-btn {
    background: #0a6ebd;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #084d8a;
}

/* פוטר - התאמה לעיצוב הקיים */
.footer {
    background: #0a6ebd;
    color: white;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-section h4 {
    margin-top: 0;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section p {
    margin: 0.5rem 0;
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.6;
}

.emergency-contacts p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    margin: 0.8rem 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 1rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p {
    margin: 0.5rem 0;
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.5;
}

.disclaimer {
    color: #ffc107 !important;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem !important;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
}

.disclaimer i {
    font-size: 1.2rem;
}

/* התאמות נגישות */
.high-contrast .protocol-step,
.high-contrast .scenario-card,
.high-contrast .resource-card,
.high-contrast .tab-content,
.high-contrast .age-group,
.high-contrast .technique-card,
.high-contrast .role {
    background: #000 !important;
    color: yellow !important;
    border-color: yellow !important;
}

.high-contrast .step-content h4,
.high-contrast .scenario-card h3,
.high-contrast table td,
.high-contrast .technique-card h3,
.high-contrast .role h4 {
    color: yellow !important;
}

.dark-mode .protocol-step,
.dark-mode .scenario-card,
.dark-mode .resource-card,
.dark-mode .tab-content,
.dark-mode .age-group,
.dark-mode .technique-card,
.dark-mode .role {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
}

.dark-mode .step-content h4,
.dark-mode .scenario-card h3,
.dark-mode table td,
.dark-mode .technique-card h3,
.dark-mode .role h4 {
    color: #e2e8f0 !important;
}

/* רספונסיביות */
@media (max-width: 768px) {
    .protocol-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .age-comparison,
    .breathing-technique,
    .pulse-locations,
    .reporting-protocol {
        grid-template-columns: 1fr;
    }
    
    .technique-details {
        grid-template-columns: 1fr;
    }
    
    .team-roles {
        grid-template-columns: 1fr;
    }
    
    .timer-display {
        gap: 1rem;
    }
    
    .time-box {
        min-width: 70px;
    }
    
    .time-box span {
        font-size: 2rem;
    }
    
    .scenario-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .resource-cards {
        grid-template-columns: 1fr;
    }
    
    .quick-steps {
        grid-template-columns: 1fr;
    }
    
    .safety-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .scenario-grid {
        grid-template-columns: 1fr;
    }
    
    .timer-controls {
        flex-direction: column;
    }
    
    .timer-btn {
        justify-content: center;
    }
    
    .assessment-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
    }
}