/* Google Fonts: Outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Outfit', sans-serif;
    background-color: #F8F9FA;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile-First Frame container for Desktop Viewports */
.app-container {
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    background-color: #FFFFFF;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 120px; /* Space for bottom nav (70px height + raised missions button clearance) */
}

/* Utility: active press scale for buttons (Tailwind CDN doesn't ship scale-98 by default) */
.active\:scale-98:active {
    transform: scale(0.98);
}

/* Prevent SVG elements from growing beyond their container due to unrecognized size classes */
svg {
    max-width: 100%;
    flex-shrink: 0;
}

/* Bottom nav safe area — ensures last page content is never hidden behind the nav */
.page-bottom-spacer {
    height: 20px;
}

/* Hide default browser scrollbars for aesthetic premium feel */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #E2E8F0;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #CBD5E1;
}

/* Glassmorphism details */
.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
}

/* Timeline vertical track for Mission Screens */
.mission-timeline-track {
    position: relative;
}
.mission-timeline-track::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: #F1F5F9;
    z-index: 0;
}

/* Ripple micro-animation */
.ripple-button {
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
}
.ripple-button:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}
.ripple-button:active:after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}

/* Shimmer animation loading */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.shimmer {
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Marquee scrolling */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.marquee-text {
    display: inline-block;
    animation: marquee 25s linear infinite;
    padding-left: 100%;
}
@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}
