/* ===================================
   MAPA ASTRAL - DESIGN PREMIUM
   Mobile-First & Animações Suaves
   =================================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-lighter: #f3f4f6;
    --border: #e5e7eb;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.mapa-astral-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px;
    animation: fadeIn 0.6s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mapa-astral-header {
    margin-bottom: 24px;
    animation: slideInLeft 0.5s ease-out;
}

.progress-bar {
    height: 8px;
    background: var(--bg-lighter);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

.progress-text {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-medium);
    text-align: center;
    letter-spacing: 0.5px;
}

.mapa-astral-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    animation: scaleIn 0.5s ease-out 0.2s both;
}

.form-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-subtitle {
    font-size: 16px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 24px;
    animation: fadeIn 0.6s ease-out backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    color: var(--text-dark);
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.btn-primary {
    width: 100%;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    animation: fadeIn 0.6s ease-out 0.6s backwards;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.5);
}

.btn-arrow {
    display: inline-block;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.loading-container {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
    border: 4px solid var(--bg-lighter);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 12px;
}

.loading-subtext {
    font-size: 14px;
    color: var(--text-light);
}

.result-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sign-symbol {
    font-size: 60px;
}

.main-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 16px;
    animation: fadeIn 0.6s ease-out 0.3s backwards;
}

.sign-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    font-size: 14px;
    animation: fadeIn 0.6s ease-out 0.4s backwards;
}

.sign-element,
.sign-quality,
.sign-ruler {
    padding: 6px 12px;
    background: var(--bg-lighter);
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--text-medium);
}

.context-box {
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    border-left: 4px solid var(--primary);
    padding: 24px;
    border-radius: var(--radius-md);
    margin: 32px 0;
    animation: slideInLeft 0.6s ease-out 0.5s backwards;
}

.context-box p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
}

.description-section {
    margin: 32px 0;
    text-align: left;
    animation: fadeIn 0.6s ease-out 0.6s backwards;
}

.description-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.description-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-medium);
}

.traits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 32px 0;
}

.trait-box {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    transition: var(--transition);
    animation: fadeIn 0.6s ease-out backwards;
}

.trait-box:nth-child(1) { animation-delay: 0.7s; }
.trait-box:nth-child(2) { animation-delay: 0.8s; }

.trait-box.positive {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-color: #6ee7b7;
}

.trait-box.challenges {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #fcd34d;
}

.trait-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.trait-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.trait-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trait-box li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
}

.trait-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--success);
}

.trait-box.challenges li::before {
    content: '!';
    color: var(--warning);
}

.info-boxes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 32px 0;
}

.info-box {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    animation: fadeIn 0.6s ease-out backwards;
}

.info-box:nth-child(1) { animation-delay: 0.9s; }
.info-box:nth-child(2) { animation-delay: 1s; }

.info-box:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.info-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.info-box p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-medium);
}

.cta-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
    text-align: center;
    animation: fadeIn 0.6s ease-out 1.1s backwards;
}

.cta-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 24px;
}

.cta-section.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 40px 32px;
    border-radius: var(--radius-xl);
    margin-top: 40px;
    border: none;
    box-shadow: var(--shadow-xl);
}

.cta-box h3 {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.cta-box p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

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

.cta-box .btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-4px) scale(1.02);
}

.error-message {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-left: 4px solid var(--error);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin: 24px 0;
    text-align: center;
    animation: fadeIn 0.4s ease-out;
    color: #991b1b;
}

.error-message a {
    color: var(--error);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--error);
}

@media (min-width: 640px) {
    .mapa-astral-container { padding: 24px; }
    .mapa-astral-content { padding: 48px 40px; }
    .traits-grid, .info-boxes { grid-template-columns: repeat(2, 1fr); }
    .form-title { font-size: 36px; }
    .main-title { font-size: 40px; }
}

@media (min-width: 768px) {
    .mapa-astral-container { padding: 32px; }
}

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