/* ═══════════════════════════════════════════════════════════════════════════
   Info Pages — How It Works, Safety, Privacy & Terms Modals
   Shared Stylesheet (light + dark theme aware, mobile responsive)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero Banner ──────────────────────────────────────────────────────────── */
.info-hero {
    background: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
    padding: 80px 5% 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
}

.info-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 160%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.info-hero-safety {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
}

.info-hero-safety .info-hero-content h1,
.info-hero-safety .info-hero-content p {
    color: #fff;
}

.info-hero-safety .info-hero-icon {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.info-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.info-hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(26, 26, 26, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.info-hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.15;
}

.info-hero-content p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.7;
    opacity: 0.9;
}

/* ── Section Container ────────────────────────────────────────────────────── */
.info-section {
    padding: 60px 5%;
}

.info-container {
    max-width: 800px;
    margin: 0 auto;
}

/* ── Step Cards (How It Works) ────────────────────────────────────────────── */
.info-step-card {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 30px;
    background: var(--white, #ffffff);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.info-step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.info-step-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.info-step-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(255, 215, 0, 0.12);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.info-step-icon {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #FFD700, #FFA000);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1a1a1a;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.info-step-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary, #1a1a1a);
    margin-bottom: 8px;
}

.info-step-body p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ── Connectors between steps ─────────────────────────────────────────────── */
.info-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
}

.connector-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, #FFD700, rgba(255, 215, 0, 0.2));
}

.connector-dot {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD700;
    font-size: 0.8rem;
}

/* ── Safety Feature Cards ─────────────────────────────────────────────────── */
.safety-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 30px;
    background: var(--white, #ffffff);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.safety-feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.safety-feature-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.safety-feature-icon {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #FFD700, #FFA000);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1a1a1a;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.safety-feature-icon.sos-pulse {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
    animation: sosPulse 2s ease-in-out infinite;
}

@keyframes sosPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3); }
    50%      { box-shadow: 0 6px 30px rgba(231, 76, 60, 0.6); }
}

.safety-feature-body h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary, #1a1a1a);
    margin-bottom: 8px;
}

.safety-feature-body p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.safety-feature-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(46, 204, 113, 0.2);
    display: flex;
    align-items: center;
    gap: 5px;
}

.safety-feature-badge.sos-badge {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.2);
}

/* ── Icon Animations ──────────────────────────────────────────────────────── */
.pulse-icon {
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

.bounce-icon {
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(5px); }
}

/* ── CTA Section ──────────────────────────────────────────────────────────── */
.info-cta {
    background: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
    padding: 60px 5%;
    text-align: center;
}

.info-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.info-cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.info-cta-content p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 25px;
    opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Privacy & Terms – Modal Popups
   ═══════════════════════════════════════════════════════════════════════════ */
.info-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.info-modal-overlay.active {
    display: flex;
}

.info-modal-content {
    max-width: 580px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 2.5rem 2rem !important;
    animation: modalSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.info-modal-close {
    position: absolute;
    top: 15px;
    right: 18px;
    border: none;
    background: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s, transform 0.3s;
    line-height: 1;
    z-index: 1;
}

.info-modal-close:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

.info-modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFD700, #FFA000);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    animation: iconPulse 3s ease-in-out infinite;
}

.info-modal-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary, #1a1a1a);
    margin-bottom: 8px;
}

.info-modal-subtitle {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.info-modal-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 20px;
}

.info-modal-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    background: #f9f9f9;
    border-radius: 14px;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-modal-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.info-modal-item-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #FFD700, #FFA000);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #1a1a1a;
}

.info-modal-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary, #1a1a1a);
    margin-bottom: 5px;
}

.info-modal-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.info-modal-footer-text {
    font-size: 0.8rem;
    color: #999;
    text-align: center;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Dark Theme Overrides
   ═══════════════════════════════════════════════════════════════════════════ */
body.dark-theme .info-step-card,
body.dark-theme .safety-feature-card {
    background: var(--white, #1e293b) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.dark-theme .info-step-body h2,
body.dark-theme .safety-feature-body h2 {
    color: var(--text, #f5f5f5) !important;
}

body.dark-theme .info-step-body p,
body.dark-theme .safety-feature-body p {
    color: var(--text-muted, #94a3b8) !important;
}

body.dark-theme .info-step-number {
    color: rgba(255, 215, 0, 0.08);
}

body.dark-theme .info-modal-content {
    background: var(--white, #1e293b) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .info-modal-content h2 {
    color: var(--text, #f5f5f5) !important;
}

body.dark-theme .info-modal-subtitle {
    color: var(--text-muted, #94a3b8) !important;
}

body.dark-theme .info-modal-item {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
}

body.dark-theme .info-modal-item h4 {
    color: var(--text, #f5f5f5) !important;
}

body.dark-theme .info-modal-item p {
    color: var(--text-muted, #94a3b8) !important;
}

body.dark-theme .info-modal-footer-text {
    color: #475569 !important;
    border-top-color: #334155 !important;
}

body.dark-theme .info-modal-close {
    color: #64748b;
}

body.dark-theme .info-modal-close:hover {
    color: #e74c3c;
}

body.dark-theme .safety-feature-badge {
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.15);
}

body.dark-theme .safety-feature-badge.sos-badge {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.15);
}

body.dark-theme .info-cta {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

body.dark-theme .info-cta-content h2 {
    color: var(--primary, #FFD700) !important;
}

body.dark-theme .info-cta-content p {
    color: var(--text-muted, #94a3b8) !important;
}

body.dark-theme .connector-line {
    background: linear-gradient(to bottom, rgba(255,215,0,0.4), rgba(255,215,0,0.05));
}

/* ═══════════════════════════════════════════════════════════════════════════
   Mobile Responsive
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .info-hero {
        padding: 60px 5% 45px;
        border-radius: 0 0 30px 30px;
    }

    .info-hero-content h1 {
        font-size: 2rem;
    }

    .info-hero-content p {
        font-size: 0.95rem;
    }

    .info-hero-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .info-section {
        padding: 40px 5%;
    }

    /* Step cards stack vertically on mobile */
    .info-step-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 20px;
    }

    .info-step-body h2 {
        font-size: 1.2rem;
    }

    .info-step-body p {
        font-size: 0.9rem;
    }

    .info-step-number {
        font-size: 2.5rem;
        top: 10px;
        right: 15px;
    }

    /* Safety cards stack on mobile */
    .safety-feature-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 20px;
    }

    .safety-feature-body h2 {
        font-size: 1.2rem;
    }

    .safety-feature-body p {
        font-size: 0.9rem;
    }

    .safety-feature-badge {
        position: relative;
        top: auto;
        right: auto;
        align-self: center;
        margin-top: 15px;
    }

    /* CTA */
    .info-cta {
        padding: 40px 5%;
    }

    .info-cta-content h2 {
        font-size: 1.5rem;
    }

    /* Modals */
    .info-modal-content {
        padding: 2rem 1.5rem !important;
        max-height: 90vh;
    }

    .info-modal-content h2 {
        font-size: 1.3rem;
    }

    .info-modal-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 15px;
    }
}
