/*
Theme Name: Hello Elementor Child - Portal Cotista Athon
Theme URI: https://portalcotista.athoncapital.com.br
Description: Tema filho do Hello Elementor para o Portal do Cotista Athon Capital
Author: Athon Capital
Author URI: https://athoncapital.com.br
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* ============================================
   RESET E BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Exo', 'Segoe UI', sans-serif;
    background-color: #F5F4F0;
    color: #1A1A2E;
    margin: 0;
    padding: 0;
}

/* ============================================
   HEADER
   ============================================ */
#athon-header {
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    padding: 10px 40px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
}

/* --- LADO ESQUERDO --- */
.athon-header-user {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 0;
}

/* Card bege: avatar + nome + badge */
.athon-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #EBE4D5;
    border-radius: 40px;
    padding: 5px 14px 5px 5px;
    height: 46px;
}

/* Avatar */
.athon-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #300f66;
    flex-shrink: 0;
    background: #f0eaf8;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.athon-avatar-initials {
    font-size: 16px;
    font-weight: 600;
    color: #300f66;
    font-family: 'Exo', sans-serif;
}

/* Nome */
.athon-greeting {
    font-family: 'Exo', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #300f66;
    white-space: nowrap;
}

/* Badge subclasse */
.athon-badge,
.athon-badge-a,
.athon-badge-b,
.athon-badge-ab {
    display: inline-flex;
    align-items: center;
    background: #89D2C5;
    color: #1a1a1a;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    border: none;
}

/* Card cinza pill: botão logout */
.athon-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 46px;
  border-radius: 40px;
  background: #EEEEEE;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: #89D2C5;
  margin-left: 0;
  flex-shrink: 0;
}

.athon-logout svg {
    stroke: #89D2C5;
    width: 20px;
    height: 20px;
}

.athon-logout:hover { background: #e0e0e0; }
.athon-logout:hover svg { stroke: #300f66; }

/* --- NAVEGAÇÃO CENTRAL --- */
.athon-header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.athon-nav-link {
    font-family: 'Exo', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #9CA3AF;
    text-decoration: none;
    padding: 6px 16px;
    position: relative;
    transition: color 0.2s;
}

.athon-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: transparent;
    border-radius: 2px;
    transition: background 0.2s;
}

.athon-nav-link.active {
    color: #300f66;
    font-weight: 600;
}

.athon-nav-link.active::after {
    background: #8DE6D7;
}

.athon-nav-link:hover { color: #300f66; }

/* --- LOGO --- */
.athon-header-logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 140px;
}

.athon-header-logo img {
    height: 36px;
    width: auto;
}

/* ============================================
   CONTEÚDO PRINCIPAL
   ============================================ */
.athon-portal-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 40px;
}

/* ============================================
   CARDS DE MÉTRICAS
   ============================================ */
.athon-metric-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 12px;
}

.athon-metric-card:last-child {
    margin-bottom: 0;
}

.athon-metric-label {
    font-family: 'Exo', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
    margin-bottom: 8px;
}

.athon-metric-value {
    font-family: 'Exo', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #300f66;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.athon-metric-delta {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #059669;
    margin-top: 6px;
}

/* ============================================
   BANNER CTA
   ============================================ */
.athon-cta-banner {
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
    border-radius: 10px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}

.athon-cta-text {
    font-size: 14px;
    font-weight: 600;
    color: #300f66;
}

.athon-cta-sub {
    font-size: 13px;
    color: #4B5563;
    margin-top: 2px;
}

.athon-cta-btn {
    font-size: 13px;
    font-weight: 500;
    color: #300f66;
    border: 1px solid #300f66;
    border-radius: 8px;
    padding: 8px 18px;
    background: #FFFFFF;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.athon-cta-btn:hover { background: #f0eaf8; }

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
    #athon-header {
        padding: 10px 16px;
        height: auto;
        flex-wrap: wrap;
        gap: 12px;
    }

    .athon-header-nav {
        position: static;
        transform: none;
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .athon-metrics-grid {
        grid-template-columns: 1fr;
    }
}
