/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #4a154b 0%, #6b2c87 50%, #8b5cf6 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

/* Container Principal */
.container {
    max-width: 420px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.8s ease-out;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 35px;
}

.logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #4a154b, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.3);
}

.logo::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ff6b6b, #8b5cf6, #4a154b);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
    animation: rotate 3s linear infinite;
}

.logo-text {
    color: white;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.title {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Pilares */
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    margin: 25px 0;
    padding: 20px 15px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.pillars-title {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #4a154b;
    margin-bottom: 10px;
}

.pillar {
    text-align: center;
    padding: 15px 8px;
    transition: all 0.3s ease;
    border-radius: 12px;
    cursor: default;
}

.pillar:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-3px);
}

.pillar-icon {
    width: 35px;
    height: 35px;
    margin: 0 auto 8px;
    background: linear-gradient(135deg, #4a154b, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-icon i {
    color: white;
    font-size: 14px;
}

.pillar-name {
    font-size: 12px;
    font-weight: 600;
    color: #4a154b;
}

/* Links */
.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.link-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    display: block;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-item:hover::before {
    left: 100%;
}

.link-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
    border-color: #8b5cf6;
    text-decoration: none;
}

.link-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.link-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4a154b, #8b5cf6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.link-icon i {
    color: white;
    font-size: 18px;
}

.link-text {
    flex: 1;
}

.link-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: #333;
}

.link-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Link Especial */
.special-link {
    background: linear-gradient(135deg, #4a154b, #8b5cf6);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.special-link .link-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.special-link .link-title {
    color: white;
}

.special-link .link-description {
    color: rgba(255, 255, 255, 0.8);
}

/* Redes Sociais */
.social-section {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-item {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 50%;
    color: #4a154b;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
}

.social-item:hover {
    background: #4a154b;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 21, 75, 0.3);
    text-decoration: none;
}

/* Chatbot */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #20B358);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.chatbot-toggle i {
    color: white;
    font-size: 24px;
    animation: pulse 2s infinite;
}

/* Responsividade */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        margin: 10px auto;
        padding: 30px 20px;
    }
    
    .title {
        font-size: 22px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .pillars {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 15px 10px;
    }
    
    .pillar {
        padding: 12px 5px;
    }
    
    .pillar-name {
        font-size: 11px;
    }
    
    .link-item {
        padding: 16px;
    }
    
    .link-content {
        gap: 12px;
    }
    
    .link-icon {
        width: 42px;
        height: 42px;
    }
    
    .link-icon i {
        font-size: 16px;
    }
    
    .link-title {
        font-size: 15px;
    }
    
    .link-description {
        font-size: 12px;
    }

    .chatbot-toggle {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .chatbot-toggle i {
        font-size: 22px;
    }
}

@media (max-width: 360px) {
    .pillars {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .pillar-icon {
        width: 30px;
        height: 30px;
    }
    
    .pillar-icon i {
        font-size: 12px;
    }
}

/* Melhorias de Acessibilidade */
.link-item:focus,
.social-item:focus,
.chatbot-toggle:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* Modo escuro (se necessário no futuro) */
@media (prefers-color-scheme: dark) {
    /* Implementar se necessário */
}

/* Performance - reduzir animações se usuário preferir */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}