/* ===== SOS PAGE - EMERGENCY PULSE THEME ===== */

/* Full Page Container */
.sos-fullpage {
    min-height: 100vh;
    background: linear-gradient(180deg, #0D1117 0%, #1a0a0a 50%, #0D1117 100%);
    position: relative;
    overflow-x: hidden;
}

/* ===== EMERGENCY HERO SECTION ===== */
.sos-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated pulse rings background */
.pulse-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.pulse-ring {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px solid rgba(230, 57, 70, 0.3);
    animation: pulseExpand 4s ease-out infinite;
}

.pulse-ring.pulse-2 {
    animation-delay: 1.3s;
}

.pulse-ring.pulse-3 {
    animation-delay: 2.6s;
}

@keyframes pulseExpand {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Emergency Indicator */
.emergency-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(230, 57, 70, 0.15);
    border: 1px solid rgba(230, 57, 70, 0.5);
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.indicator-dot {
    width: 10px;
    height: 10px;
    background: #E63946;
    border-radius: 50%;
    animation: dotBlink 1s ease-in-out infinite;
}

@keyframes dotBlink {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px #E63946; }
    50% { opacity: 0.3; box-shadow: none; }
}

.indicator-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #E63946;
    text-transform: uppercase;
}

/* Hero Title */
.sos-hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    color: white;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.text-emergency {
    background: linear-gradient(135deg, #E63946 0%, #FF6B6B 50%, #E63946 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: emergencyGlow 2s ease infinite;
}

@keyframes emergencyGlow {
    0%, 100% { background-position: 0% 50%; filter: drop-shadow(0 0 20px rgba(230, 57, 70, 0.5)); }
    50% { background-position: 100% 50%; filter: drop-shadow(0 0 40px rgba(230, 57, 70, 0.8)); }
}

.sos-hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    line-height: 1.7;
    margin: 0 0 50px;
    position: relative;
    z-index: 1;
}

/* ===== MEGA SOS BUTTON ===== */
.sos-button-container {
    position: relative;
    margin-bottom: 40px;
}

.sos-mega-button {
    width: clamp(180px, 25vw, 240px);
    height: clamp(180px, 25vw, 240px);
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #E63946, #C62828);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
}

.sos-button-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.4) 0%, transparent 70%);
    filter: blur(20px);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

.sos-button-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.sos-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.sos-text {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: white;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sos-subtext {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

/* Pulse rings around button */
.sos-pulse-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 3px solid rgba(230, 57, 70, 0.6);
    animation: buttonPulse 2s ease-out infinite;
}

.sos-pulse-ring.delay-1 {
    animation-delay: 0.5s;
}

.sos-pulse-ring.delay-2 {
    animation-delay: 1s;
}

@keyframes buttonPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.sos-mega-button:hover {
    transform: scale(1.08);
    box-shadow: 0 0 60px rgba(230, 57, 70, 0.6);
}

.sos-mega-button:active {
    transform: scale(0.95);
}

/* Response Badge */
.response-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.3);
    padding: 12px 24px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.response-icon {
    font-size: 1.2rem;
}

.response-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.response-text strong {
    color: #00F5D4;
}

/* ===== SECTION STYLES ===== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: white;
    text-align: center;
    margin: 0 0 50px;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions-section {
    padding: 80px 0;
    background: rgba(22, 27, 34, 0.5);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 20px;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: rgba(33, 38, 45, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(230, 57, 70, 0.2);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-action-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 57, 70, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.quick-action-card.emergency {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2), rgba(198, 40, 40, 0.1));
    border-color: rgba(230, 57, 70, 0.5);
}

.quick-action-card.emergency:hover {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.3), rgba(198, 40, 40, 0.2));
    box-shadow: 0 20px 40px rgba(230, 57, 70, 0.2);
}

.quick-action-card.urgent {
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.1), rgba(230, 57, 70, 0.1));
    border-color: rgba(255, 209, 102, 0.4);
}

.action-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.action-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 5px;
}

.action-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.action-arrow {
    margin-left: auto;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, color 0.3s ease;
}

.quick-action-card:hover .action-arrow {
    transform: translateX(5px);
    color: #E63946;
}

/* ===== HOW IT WORKS ===== */
.how-it-works-section {
    padding: 100px 0;
}

.steps-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.timeline-line {
    position: absolute;
    top: 60px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, #E63946, #7B2CBF, #00F5D4);
    z-index: 0;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #E63946, #7B2CBF);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(33, 38, 45, 0.8);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
    border: 2px solid rgba(230, 57, 70, 0.3);
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    transform: translateY(-5px);
    border-color: #E63946;
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.2);
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 10px;
}

.step-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.6;
}

/* ===== NETWORK STATS ===== */
.network-stats-section {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(230, 57, 70, 0.05) 0%, transparent 100%);
}

.stats-header {
    text-align: center;
    margin-bottom: 50px;
}

.stats-badge {
    display: inline-block;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #00F5D4;
    margin-bottom: 15px;
}

.stats-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: white;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(33, 38, 45, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(230, 57, 70, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 57, 70, 0.5);
    background: rgba(33, 38, 45, 0.8);
}

.stat-value {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #E63946, #00F5D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.stat-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Live Activity */
.live-activity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 30px;
    background: rgba(0, 245, 212, 0.1);
    border-radius: 50px;
    width: fit-content;
    margin: 0 auto;
}

.activity-pulse {
    width: 12px;
    height: 12px;
    background: #00F5D4;
    border-radius: 50%;
    animation: activityPulse 2s ease-in-out infinite;
}

@keyframes activityPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(0, 245, 212, 0); }
}

.activity-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.activity-text strong {
    color: #00F5D4;
}

/* ===== NOTICE SECTION ===== */
.notice-section {
    padding: 60px 0;
}

.notice-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 209, 102, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(255, 209, 102, 0.3);
}

.notice-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.notice-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFD166;
    margin: 0 0 10px;
}

.notice-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 0;
}

/* ===== EMERGENCY CONTACTS ===== */
.emergency-contacts-section {
    padding: 80px 0;
    background: rgba(22, 27, 34, 0.5);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px;
    background: rgba(33, 38, 45, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(230, 57, 70, 0.2);
    text-decoration: none;
    transition: all 0.4s ease;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 57, 70, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-card.primary {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.3), rgba(198, 40, 40, 0.2));
    border-color: #E63946;
}

.contact-card.primary:hover {
    box-shadow: 0 20px 40px rgba(230, 57, 70, 0.3);
}

.contact-icon {
    font-size: 3rem;
}

.contact-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.contact-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.contact-card.primary .contact-number {
    color: #E63946;
    font-size: 2rem;
}

/* ===== CTA SECTION ===== */
.sos-cta-section {
    padding: 100px 40px;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.05), rgba(123, 44, 191, 0.05));
    text-align: center;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
    60% { transform: scale(1); }
}

.cta-container h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: white;
    margin: 0 0 15px;
}

.cta-container p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #E63946, #7B2CBF);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.3);
}

.btn-primary-cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.4);
}

.btn-secondary-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
}

.btn-secondary-cta:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ===== LIGHT MODE OVERRIDES ===== */
body:not(.dark-mode) .sos-fullpage {
    background: linear-gradient(180deg, #f5f5f5 0%, #fff5f5 50%, #f5f5f5 100%);
}

body:not(.dark-mode) .sos-hero h1 {
    color: #1a1a1a;
}

body:not(.dark-mode) .sos-hero p {
    color: #666;
}

body:not(.dark-mode) .indicator-text {
    color: #E63946;
}

body:not(.dark-mode) .response-text {
    color: #333;
}

body:not(.dark-mode) .quick-actions-section,
body:not(.dark-mode) .emergency-contacts-section {
    background: rgba(0, 0, 0, 0.03);
}

body:not(.dark-mode) .quick-action-card,
body:not(.dark-mode) .stat-card,
body:not(.dark-mode) .contact-card {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body:not(.dark-mode) .action-content h3,
body:not(.dark-mode) .step-card h3,
body:not(.dark-mode) .stat-label,
body:not(.dark-mode) .contact-number,
body:not(.dark-mode) .section-title,
body:not(.dark-mode) .stats-header h2,
body:not(.dark-mode) .cta-container h2 {
    color: #1a1a1a;
}

body:not(.dark-mode) .action-content p,
body:not(.dark-mode) .step-card p,
body:not(.dark-mode) .stat-desc,
body:not(.dark-mode) .contact-label,
body:not(.dark-mode) .cta-container p,
body:not(.dark-mode) .activity-text,
body:not(.dark-mode) .notice-content p {
    color: #666;
}

body:not(.dark-mode) .step-icon {
    background: white;
}

body:not(.dark-mode) .notice-card {
    background: rgba(255, 209, 102, 0.15);
}

body:not(.dark-mode) .btn-secondary-cta {
    color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .steps-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-line {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sos-hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .sos-mega-button {
        width: 160px;
        height: 160px;
    }

    .sos-text {
        font-size: 1.8rem;
    }

    .section-container {
        padding: 0 20px;
    }

    .quick-actions-section,
    .how-it-works-section,
    .network-stats-section,
    .emergency-contacts-section {
        padding: 60px 0;
    }

    .steps-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-card {
        padding: 30px 15px;
    }

    .notice-card {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary-cta,
    .btn-secondary-cta {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sos-hero h1 {
        font-size: 2.5rem;
    }

    .sos-mega-button {
        width: 140px;
        height: 140px;
    }

    .sos-text {
        font-size: 1.5rem;
    }

    .sos-icon {
        font-size: 2rem;
    }

    .emergency-indicator {
        padding: 8px 16px;
    }

    .indicator-text {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .response-badge {
        flex-direction: column;
        text-align: center;
    }

    .section-container {
        padding: 0 16px;
    }

    .steps-timeline {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .btn-primary-cta,
    .btn-secondary-cta {
        max-width: 300px;
        width: 100%;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .pulse-ring,
    .indicator-dot,
    .sos-button-glow,
    .sos-pulse-ring,
    .activity-pulse,
    .cta-icon,
    .text-emergency {
        animation: none;
    }

    .sos-pulse-ring {
        display: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

/* ===== CONTAINER OVERRIDES ===== */
.container {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    position: relative !important;
    transform: none !important;
}
