/* ============================================
   EMERGENCY PAGES STYLING
   Urgent, clear, accessible design for crisis situations
   ============================================ */

/* ============================================
   EMERGENCY HERO SECTIONS
   ============================================ */

.emergency-hero {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 4rem 1rem;
    text-align: center;
}

.emergency-icon i {
    font-size: 5rem;
    color: #fff3cd;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.emergency-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.emergency-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
}

.danger-callout {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #fff3cd;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    font-size: 1.2rem;
}

/* ============================================
   CRISIS HOTLINES SECTION
   ============================================ */

.crisis-hotlines {
    background: #dc3545 !important;
}

.crisis-card {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.crisis-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.crisis-phone a {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.crisis-phone a:hover {
    text-decoration: underline;
}

.crisis-name {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.crisis-desc {
    opacity: 0.9;
}

/* ============================================
   EMERGENCY CATEGORIES / CARDS
   ============================================ */

.emergency-categories {
    background: #f8f9fa;
}

.emergency-card .card {
    border: none;
    transition: all 0.3s ease;
}

.emergency-card:hover .card {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.emergency-card-icon i {
    font-size: 3.5rem;
    color: #dc3545;
}

.severity-critical .emergency-card-icon i {
    color: #dc3545;
}

.severity-urgent .emergency-card-icon i {
    color: #ffc107;
}

.severity-important .emergency-card-icon i {
    color: #17a2b8;
}

.emergency-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.emergency-card-description {
    color: #666;
    margin-bottom: 1rem;
}

.emergency-quick-info {
    background: #e7f3ff;
    border-left: 3px solid #0d6efd;
    padding: 0.75rem;
    font-size: 0.9rem;
    color: #0d6efd;
    border-radius: 5px;
}

.btn-emergency {
    background: #dc3545;
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

.btn-emergency:hover {
    background: #c82333;
    color: white;
    transform: scale(1.05);
}

/* ============================================
   EMERGENCY DETAIL PAGES
   ============================================ */

.emergency-detail-header {
    padding: 3rem 1rem;
}

.emergency-detail-header i {
    display: block;
    margin-bottom: 1rem;
}

/* ============================================
   CONTACT CARDS
   ============================================ */

.contact-card {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    border-color: #dc3545;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.contact-phone {
    font-size: 1.8rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.contact-phone a {
    color: #dc3545;
    text-decoration: none;
}

.contact-phone a:hover {
    text-decoration: underline;
}

.contact-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-desc {
    color: #666;
    font-size: 0.9rem;
}

.contact-hours .badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

/* ============================================
   RIGHTS SECTION
   ============================================ */

.rights-box {
    background: #e7f3ff;
    border: 3px solid #0d6efd;
    border-radius: 15px;
    padding: 2rem;
}

.rights-list {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
}

.right-item {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    font-size: 1.05rem;
}

.right-item:last-child {
    border-bottom: none;
}

.right-item i {
    font-size: 1.2rem;
    vertical-align: middle;
}

/* ============================================
   INFORMATION SECTIONS
   ============================================ */

.info-section {
    background: white;
    border-left: 4px solid #0d6efd;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 5px;
}

.info-section.important-section {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.info-section h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.section-content {
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
}

.section-bullets {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.section-bullets li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ============================================
   STEPS / WHAT TO DO NEXT
   ============================================ */

.steps-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.step-content p {
    color: #666;
    margin-bottom: 0;
}

/* ============================================
   REASSURANCE SECTION
   ============================================ */

.reassurance-section {
    background: #f8f9fa;
}

.reassurance-point {
    padding: 1rem;
}

.reassurance-point i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

/* ============================================
   INFO BOXES
   ============================================ */

.info-box {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
}

.info-box h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.info-box ul {
    padding-left: 1.5rem;
}

.info-box li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* ============================================
   CONTACTS PAGE SPECIFIC
   ============================================ */

.contacts-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.contact-detail-card {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.contact-detail-card:hover {
    border-color: #dc3545;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.contact-detail-card.available-24x7 {
    border-color: #28a745;
    background: linear-gradient(to bottom, #e8f5e9, white);
}

.availability-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.contact-org-name {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-phone-large {
    background: #dc3545;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.contact-phone-large a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.contact-phone-large a:hover {
    text-decoration: underline;
}

.contact-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-hours {
    color: #666;
    font-size: 0.95rem;
    padding-top: 0.5rem;
    border-top: 1px solid #dee2e6;
}

.category-header {
    background: #f8f9fa;
    border-left: 5px solid #0d6efd;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 5px;
}

.category-header.priority-high {
    background: #fff3cd;
    border-left-color: #dc3545;
}

.category-header h2 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.category-description {
    color: #666;
    margin-bottom: 0;
}

/* ============================================
   USAGE GUIDE & WHAT TO SAY
   ============================================ */

.guide-section {
    margin-bottom: 2rem;
}

.guide-section h4 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.guide-section p {
    color: #666;
    line-height: 1.6;
}

.phrase-boxes {
    display: grid;
    gap: 1.5rem;
}

.phrase-box {
    background: #e7f3ff;
    border-left: 4px solid #0d6efd;
    padding: 1.5rem;
    border-radius: 5px;
}

.phrase-box h5 {
    color: #0d6efd;
    margin-bottom: 0.75rem;
}

.phrase-box p {
    margin-bottom: 0;
    font-style: italic;
    color: #444;
}

/* ============================================
   KEY NUMBERS SECTION
   ============================================ */

.key-number {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.key-number-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.key-number-phone {
    font-size: 2rem;
    font-weight: 700;
}

/* ============================================
   SURVIVAL GUIDE (HOMELESS PAGE)
   ============================================ */

.survival-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.survival-item {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 1.5rem;
}

.survival-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.survival-item ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.survival-item li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .emergency-title {
        font-size: 2rem;
    }
    
    .emergency-icon i {
        font-size: 3rem;
    }
    
    .crisis-phone a {
        font-size: 1.5rem;
    }
    
    .emergency-card-icon i {
        font-size: 2.5rem;
    }
    
    .step-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-number {
        margin: 0 auto;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* High contrast for important elements */
@media (prefers-contrast: high) {
    .emergency-card .card {
        border: 3px solid #000;
    }
    
    .btn-emergency {
        border: 2px solid #000;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
.btn-emergency:focus,
.contact-card:focus-within,
.emergency-card:focus-within {
    outline: 3px solid #dc3545;
    outline-offset: 3px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .emergency-hero,
    .crisis-hotlines {
        background: white !important;
        color: black !important;
    }
    
    .btn-emergency {
        display: none;
    }
    
    .contact-card {
        page-break-inside: avoid;
    }
}
