/* ===========================
   Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Principais - Vermelho Coral Rosado */
    --primary-color: #F4435A;
    --primary-dark: #EC407A;
    --primary-light: #FF6B7A;
    --gradient-primary: linear-gradient(135deg, #F4435A 0%, #EC407A 100%);
    --gradient-vibrant: linear-gradient(135deg, #FF6B7A 0%, #F4435A 50%, #EC407A 100%);
    
    /* Cores Secundárias */
    --secondary-color: #FF4081;
    --accent-color: #FF8A9B;
    --success-color: #4CAF50;
    
    /* Cores de Texto */
    --text-primary: #2C2C2C;
    --text-secondary: #757575;
    --text-light: #9E9E9E;
    --text-white: #FFFFFF;
    
    /* Backgrounds */
    --bg-app: #F8F9FA;
    --bg-white: #FFFFFF;
    --bg-light: #FAFAFA;
    --bg-dark: #1A1A1A;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(244, 67, 90, 0.08);
    --shadow-md: 0 4px 16px rgba(244, 67, 90, 0.12);
    --shadow-lg: 0 8px 24px rgba(244, 67, 90, 0.16);
    --shadow-xl: 0 12px 32px rgba(244, 67, 90, 0.2);
    
    /* Outros */
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 50%;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-app);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   App Container
   =========================== */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-white);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

/* ===========================
   Header
   =========================== */
.app-header {
    background: var(--gradient-primary);
    padding: 1.5rem 1.25rem;
    color: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.logo i {
    font-size: 2rem;
}

.logo span {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.header-subtitle {
    font-size: 0.9rem;
    opacity: 0.95;
    font-weight: 500;
}

/* ===========================
   Main Content
   =========================== */
.app-main {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* ===========================
   Screens
   =========================== */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: var(--transition);
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

.screen-content {
    padding: 2rem 1.25rem;
    max-width: 100%;
}

/* ===========================
   Welcome Section
   =========================== */
.welcome-section {
    text-align: center;
    margin-bottom: 2rem;
}

.icon-badge {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.screen-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.screen-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===========================
   Form Styles
   =========================== */
.profile-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-label i {
    color: var(--primary-color);
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #E0E0E0;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-family: inherit;
    background: var(--bg-white);
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(244, 67, 90, 0.1);
}

.form-input::placeholder {
    color: var(--text-light);
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-decoration: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-block {
    width: 100%;
    margin-bottom: 1rem;
}

/* ===========================
   Trust Badges
   =========================== */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    text-align: center;
}

.badge-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.badge-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ===========================
   Analysis Screen
   =========================== */
.analysis-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    text-align: center;
}

.analysis-animation {
    margin-bottom: 2rem;
}

.spinner-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.spinner {
    width: 120px;
    height: 120px;
    border: 4px solid rgba(244, 67, 90, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--primary-color);
    animation: pulse 1.5s ease-in-out infinite;
}

.analysis-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.analysis-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.progress-steps {
    width: 100%;
    max-width: 300px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    opacity: 0.3;
    transition: var(--transition);
}

.progress-step.active {
    opacity: 1;
    background: rgba(244, 67, 90, 0.08);
}

.progress-step i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.progress-step span {
    font-weight: 600;
    color: var(--text-primary);
}

/* ===========================
   Result Screen
   =========================== */
.result-content {
    text-align: center;
}

.success-animation {
    margin-bottom: 2rem;
}

.success-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    animation: scaleInBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-circle i {
    font-size: 4rem;
    color: white;
}

.result-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.result-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.result-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.result-info {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border: 2px solid rgba(244, 67, 90, 0.1);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.info-content {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.next-steps {
    background: rgba(244, 67, 90, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.next-steps h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.next-steps ul {
    list-style: none;
    text-align: left;
}

.next-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.next-steps li i {
    color: var(--success-color);
    font-size: 1rem;
}

/* ===========================
   Footer
   =========================== */
.app-footer {
    background: var(--bg-light);
    padding: 1.5rem 1.25rem;
    margin-top: auto;
    border-top: 1px solid #E0E0E0;
}

.footer-content {
    text-align: center;
}

.footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

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

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===========================
   Animations
   =========================== */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
        box-shadow: none;
    }

    .screen-content {
        padding: 1.5rem 1rem;
    }

    .screen-title {
        font-size: 1.75rem;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }

    .badge-item {
        flex-direction: row;
        justify-content: center;
        padding: 1rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .app-container {
        max-width: 600px;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}
