/* SIFU Data App - Global Styles (Redesign) */

:root {
    /* Modern Palette */
    --primary-gradient: linear-gradient(45deg, #FD267A, #FF6036);
    /* Tinder-ish */
    --primary-color: #FD267A;
    --secondary-gradient: linear-gradient(45deg, #833AB4, #FD1D1D, #FCAF45);
    /* Insta-ish */

    --text-main: #262626;
    --text-secondary: #8E8E93;
    --text-light: #C7C7CC;
    --white: #FFFFFF;

    --bg-body: #F0F2F5;
    --bg-card: #FFFFFF;
    --bg-input: #EFEFEF;

    --success: #10B981;
    --error: #EF4444;
    --border: #DBDBDB;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Mobile Container Simulation */
.app-container {
    width: 100%;
    max-width: 480px;
    background-color: var(--white);
    min-height: auto;
    max-height: 100vh;
    margin: 15px auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Important for full bleed */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.5px;
}

h1 {
    font-size: 32px;
    line-height: 1.1;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 18px;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 15px;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-sm {
    font-size: 13px;
}

.text-xs {
    font-size: 11px;
}

.text-bold {
    font-weight: 600;
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mt-auto {
    margin-top: auto;
}

.flex-grow {
    flex-grow: 1;
}

.hidden {
    display: none;
}

/* Components */

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    font-weight: 700;
    font-size: 16px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: transform 0.1s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(253, 38, 122, 0.2);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border);
    box-shadow: none;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #E0E0E0;
    color: var(--text-main);
    box-shadow: none;
}

.btn-social {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    color: #333;
    margin-bottom: 12px;
    box-shadow: none;
}

.btn-social img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

/* Inputs */
.form-group {
    margin-bottom: var(--spacing-lg);
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 16px 16px;
    font-size: 16px;
    border: none;
    border-radius: var(--radius-md);
    background-color: var(--bg-input);
    transition: background 0.2s;
    font-family: inherit;
    color: var(--text-main);
}

.form-input:focus {
    outline: none;
    background-color: #E0E0E0;
}

/* Navigation */
.nav-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    /* minimal border for insta feel */
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
}

.nav-header.transparent {
    background: transparent;
    border: none;
    position: absolute;
    width: 100%;
}

.nav-header .back-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-right: 16px;
    color: var(--text-main);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 6px;
    background-color: var(--bg-input);
    border-radius: var(--radius-full);
    margin: 10px 0 30px;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

/* Bottom Nav */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--white);
    padding: 12px 0 24px;
    /* Extra padding for bottom safe area */
    border-top: 1px solid var(--border);
    position: sticky;
    bottom: 0;
    z-index: 20;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    font-size: 10px;
    gap: 4px;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item svg {
    width: 26px;
    height: 26px;
    stroke-width: 2.5px;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Story/Avatar Circle */
.story-ring {
    padding: 3px;
    background: var(--secondary-gradient);
    border-radius: 50%;
    display: inline-block;
}

.story-ring img {
    border: 3px solid var(--white);
    border-radius: 50%;
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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