/* ==========================================================================
   DESIGN SYSTEM - DEPUTADO JOEL WILHELM (GRUPO SAÚDE)
   ========================================================================== */

:root {
    /* Color Palette */
    --primary-gradient: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    --accent-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gold-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    
    --bg-color: #0c151d;
    --card-bg: rgba(255, 255, 255, 0.95);
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    
    --primary-blue: #1e3a8a;
    --primary-blue-light: #3b82f6;
    
    --whatsapp-green: #25d366;
    --whatsapp-green-hover: #20ba5a;
    --whatsapp-glow: rgba(37, 211, 102, 0.4);
    
    /* Typography */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Shadows */
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    --btn-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    --btn-shadow-hover: 0 15px 30px rgba(37, 211, 102, 0.5);
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Background Shapes para efeito de profundidade (Vibrant Design) */
.background-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    top: -10%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: #11998e;
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: #1e3a8a;
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */

.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
    perspective: 1000px;
}

/* ==========================================================================
   CARD DESIGN (Glassmorphism & Premium feel)
   ========================================================================== */

.card {
    background: var(--card-bg);
    width: 100%;
    max-width: 450px;
    border-radius: 28px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    animation: cardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(30px);
    opacity: 0;
}

/* Animação de entrada do Card */
@keyframes cardEntrance {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================================================
   HEADER / PROFILE AREA
   ========================================================================== */

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.avatar-container {
    position: relative;
    margin-bottom: 15px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a 0%, #10b981 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials {
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1px;
}

.verified-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: #3b82f6;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #ffffff;
    font-size: 11px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.badge-category {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-category i {
    font-size: 14px;
    color: #10b981;
}

/* ==========================================================================
   CARD CONTENT
   ========================================================================== */

.card-content {
    margin-bottom: 30px;
}

.main-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.main-title .highlight {
    background: linear-gradient(135deg, #1e3a8a 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 25px;
    padding: 0 10px;
}

/* Instrução e Seta Animada */
.instruction-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--primary-blue-light);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.arrow-icon {
    font-size: 18px;
    animation: bounceArrow 1.5s infinite;
}

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

/* ==========================================================================
   CTA BUTTON (WhatsApp Action)
   ========================================================================== */

.btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background-color: var(--whatsapp-green);
    color: #ffffff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    padding: 18px 24px;
    border-radius: 18px;
    box-shadow: var(--btn-shadow);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    animation: btnPulse 2s infinite;
}

.btn-primary:hover {
    background-color: var(--whatsapp-green-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--btn-shadow-hover);
}

.btn-primary:active {
    transform: translateY(1px) scale(0.98);
}

/* Efeito Glow Pulsante */
@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-icon {
    font-size: 24px;
}

/* ==========================================================================
   FOOTER AREA
   ========================================================================== */

.card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.redirect-info {
    font-size: 13px;
    color: var(--text-secondary);
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #0f766e;
    background-color: #f0fdfa;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid #ccfbf1;
}

.secure-badge i {
    font-size: 13px;
    color: #14b8a6;
}

.main-footer {
    padding: 20px;
    text-align: center;
}

.main-footer p {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
        border-radius: 24px;
    }
    
    .main-title {
        font-size: 22px;
    }
    
    .description {
        font-size: 14px;
        padding: 0;
    }
    
    .btn-primary {
        font-size: 15px;
        padding: 16px 20px;
    }
}
