/* ============================================================
   APASSOTE APP — Custom Skin
   Fundo claro · Cores da marca · Layout Netflix
   Versão 1.0 — Subir em: /wp-content/themes/SEU-CHILD-THEME/
   ============================================================ */

/* ── VARIÁVEIS ───────────────────────────────────────────────── */
:root {
    --apas-purple:      #7c3aed;
    --apas-purple-dark: #4c1d95;
    --apas-purple-mid:  #a78bfa;
    --apas-purple-light:#ede9fe;
    --apas-purple-xlight:#f5f3ff;
    --apas-white:       #ffffff;
    --apas-bg:          #fafafa;
    --apas-bg2:         #f3f3f6;
    --apas-border:      #e8e5f0;
    --apas-text:        #1a1a2e;
    --apas-text2:       #5a5475;
    --apas-text3:       #9b93b8;
    --apas-radius:      12px;
    --apas-radius-sm:   8px;
    --apas-shadow:      0 2px 12px rgba(124,58,237,0.08);
    --apas-shadow-md:   0 4px 24px rgba(124,58,237,0.13);
    --apas-font:        'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── RESET BÁSICO ────────────────────────────────────────────── */
.apas-app * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.apas-app {
    background: var(--apas-bg);
    font-family: var(--apas-font);
    color: var(--apas-text);
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
}

/* ── HEADER ──────────────────────────────────────────────────── */
.apas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    background: var(--apas-white);
    border-bottom: 1px solid var(--apas-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.apas-logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--apas-purple);
    letter-spacing: -0.5px;
}

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

.apas-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--apas-purple-light);
    color: var(--apas-purple);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--apas-purple-mid);
}

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

/* ── SAUDAÇÃO ────────────────────────────────────────────────── */
.apas-greeting {
    padding: 14px 18px 10px;
    font-size: 14px;
    color: var(--apas-text2);
    background: var(--apas-white);
}

.apas-greeting strong {
    color: var(--apas-text);
    font-weight: 700;
}

/* ── BANNER CONTINUAR ────────────────────────────────────────── */
.apas-banner {
    margin: 12px 16px 16px;
    background: linear-gradient(135deg, var(--apas-purple-dark), var(--apas-purple));
    border-radius: var(--apas-radius);
    padding: 18px;
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 14px;
    align-items: center;
    box-shadow: var(--apas-shadow-md);
}

.apas-banner__thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--apas-radius-sm);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.25);
}

.apas-banner__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.apas-banner__title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.apas-banner__progress {
    background: rgba(255,255,255,0.25);
    border-radius: 4px;
    height: 4px;
}

.apas-banner__progress-fill {
    background: #fff;
    height: 4px;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.apas-banner__pct {
    font-size: 11px;
    color: rgba(255,255,255,0.75);
}

/* ── BADGES ──────────────────────────────────────────────────── */
.apas-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 20px;
}

.apas-badge--purple {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.apas-badge--new {
    background: var(--apas-purple);
    color: #fff;
}

/* ── BOTÕES ──────────────────────────────────────────────────── */
.apas-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--apas-radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: var(--apas-font);
}

.apas-btn--primary {
    background: #fff;
    color: var(--apas-purple);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.apas-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.apas-btn--outline {
    background: transparent;
    color: var(--apas-purple);
    border: 1.5px solid var(--apas-purple);
}

.apas-btn--outline:hover {
    background: var(--apas-purple-light);
}

/* ── FILTROS RÁPIDOS ─────────────────────────────────────────── */
.apas-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 6px 16px 14px;
    background: var(--apas-white);
    border-bottom: 1px solid var(--apas-border);
}

.apas-filters::-webkit-scrollbar { display: none; }

.apas-filter {
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--apas-font);
    border: 1.5px solid var(--apas-border);
    background: var(--apas-white);
    color: var(--apas-text2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.apas-filter:hover,
.apas-filter--active {
    background: var(--apas-purple);
    border-color: var(--apas-purple);
    color: #fff;
}

/* ── SEÇÕES ──────────────────────────────────────────────────── */
.apas-section {
    padding: 18px 0 4px;
}

.apas-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    margin-bottom: 12px;
}

.apas-section__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--apas-text);
}

.apas-section__link {
    font-size: 12px;
    font-weight: 600;
    color: var(--apas-purple);
    text-decoration: none;
}

/* ── ROWS (scroll horizontal) ────────────────────────────────── */
.apas-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 18px 12px;
    -webkit-overflow-scrolling: touch;
}

.apas-row::-webkit-scrollbar { display: none; }

/* ── CARDS ───────────────────────────────────────────────────── */
.apas-card {
    flex: 0 0 148px;
    background: var(--apas-white);
    border-radius: var(--apas-radius);
    overflow: hidden;
    border: 1px solid var(--apas-border);
    box-shadow: var(--apas-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.apas-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--apas-shadow-md);
}

.apas-card--locked {
    opacity: 0.9;
}

.apas-card-inner {
    display: block;
    text-decoration: none;
    color: inherit;
}

.apas-card-thumb {
    width: 100%;
    height: 90px;
    background: var(--apas-purple-xlight);
    position: relative;
    overflow: hidden;
}

.apas-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.apas-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 32px;
    background: linear-gradient(135deg, var(--apas-purple-xlight), var(--apas-purple-light));
}

.apas-card-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    background: var(--apas-purple);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.4px;
}

.apas-card-lock {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.apas-lock-icon {
    font-size: 24px;
}

.apas-card-body {
    padding: 9px 10px;
}

.apas-card-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--apas-text);
    line-height: 1.35;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.apas-card-progress {
    background: var(--apas-bg2);
    border-radius: 4px;
    height: 4px;
    margin-bottom: 4px;
}

.apas-card-progress-fill {
    background: var(--apas-purple);
    height: 4px;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.apas-lock-cta {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--apas-purple);
    text-decoration: none;
    margin-top: 4px;
    text-align: center;
    padding: 4px 0;
    border-top: 1px solid var(--apas-border);
}

/* ── DIVIDER ─────────────────────────────────────────────────── */
.apas-divider {
    height: 1px;
    background: var(--apas-border);
    margin: 8px 18px 4px;
}

/* ── UPSELL BANNERS ──────────────────────────────────────────── */
.apas-upsell {
    margin: 12px 16px;
    border-radius: var(--apas-radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid;
}

.apas-upsell--clube {
    background: #f0fdf4;
    border-color: #86efac;
}

.apas-upsell--comunidade {
    background: var(--apas-purple-xlight);
    border-color: var(--apas-purple-mid);
}

.apas-upsell__icon {
    font-size: 28px;
    flex-shrink: 0;
}

.apas-upsell__content {
    flex: 1;
}

.apas-upsell__content strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--apas-text);
    margin-bottom: 3px;
}

.apas-upsell__content p {
    font-size: 11px;
    color: var(--apas-text2);
    line-height: 1.4;
}

/* ── ESCOLA DE NEGÓCIOS ──────────────────────────────────────── */
.apas-negocios {
    background: var(--apas-purple-xlight);
    padding: 18px 0 20px;
    margin: 8px 0;
}

.apas-negocios .apas-section__title {
    color: var(--apas-purple-dark);
}

.apas-negocios__locked {
    padding: 0 16px;
}

.apas-negocios__grid-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.apas-neg-item {
    background: var(--apas-white);
    border: 1px solid var(--apas-border);
    border-radius: var(--apas-radius-sm);
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--apas-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.apas-neg-item--blur {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
}

.apas-negocios__cta {
    text-align: center;
    background: var(--apas-white);
    border-radius: var(--apas-radius);
    padding: 16px;
    border: 1.5px solid var(--apas-purple-mid);
}

.apas-negocios__cta p {
    font-size: 13px;
    color: var(--apas-text2);
    margin-bottom: 12px;
    line-height: 1.5;
}

.apas-negocios__cta .apas-btn--primary {
    background: var(--apas-purple);
    color: #fff;
    width: 100%;
    justify-content: center;
}

/* ── COMUNIDADE GRID ─────────────────────────────────────────── */
.apas-comunidade-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 16px;
}

.apas-com-card {
    background: var(--apas-white);
    border: 1px solid var(--apas-border);
    border-radius: var(--apas-radius);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: var(--apas-shadow);
}

.apas-com-card:hover {
    border-color: var(--apas-purple-mid);
    background: var(--apas-purple-xlight);
    transform: translateY(-1px);
}

.apas-com-card__icon {
    font-size: 26px;
}

.apas-com-card__name {
    font-size: 12px;
    font-weight: 700;
    color: var(--apas-text);
}

.apas-com-card__sub {
    font-size: 10px;
    color: var(--apas-text3);
}

/* ── SEÇÕES FILTRADAS (JS toggle) ────────────────────────────── */
.apas-section[hidden] {
    display: none;
}

/* ── RESPONSIVO / MOBILE FIRST ───────────────────────────────── */
@media (max-width: 360px) {
    .apas-card { flex: 0 0 132px; }
    .apas-banner__thumb { width: 60px; height: 60px; }
}

/* ── IMPORT FONT ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

/* ── SUBTÍTULOS DOS PILARES (Escola de Negócios) ─────────────── */
.apas-section__header--sub {
    margin-top: 14px;
}

.apas-section__subtitle {
    font-size: 14px;
    font-weight: 700;
    color: var(--apas-purple-dark);
}

/* ── BANNER DE DESTAQUE ──────────────────────────────────────── */
.apas-destaque {
    margin: 0 16px 16px;
    background: linear-gradient(135deg, #4c1d95, #7c3aed, #a855f7);
    border-radius: var(--apas-radius);
    padding: 18px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(124,58,237,0.3);
    position: relative;
    overflow: hidden;
    animation: apas-pulse-border 3s ease-in-out infinite;
}

@keyframes apas-pulse-border {
    0%, 100% { box-shadow: 0 4px 20px rgba(124,58,237,0.3); }
    50%       { box-shadow: 0 4px 28px rgba(124,58,237,0.55); }
}

.apas-destaque__label {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.apas-destaque__title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 4px;
}

.apas-destaque__text {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
    line-height: 1.5;
}

.apas-btn--destaque {
    background: #fff;
    color: var(--apas-purple);
    font-size: 13px;
    font-weight: 800;
    padding: 9px 18px;
    border-radius: var(--apas-radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s ease;
}

.apas-btn--destaque:hover { transform: translateY(-1px); }

.apas-destaque__decoration {
    font-size: 36px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* ── BUSCA GLOBAL ────────────────────────────────────────────── */
.apas-search-wrap {
    padding: 0 16px 12px;
    position: relative;
}

.apas-search {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: 50px;
    border: 1.5px solid var(--apas-border);
    background: var(--apas-white);
    font-size: 14px;
    font-family: var(--apas-font);
    color: var(--apas-text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239b93b8' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
}

.apas-search:focus {
    border-color: var(--apas-purple-mid);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.apas-search-results {
    position: absolute;
    top: calc(100% - 4px);
    left: 16px;
    right: 16px;
    background: var(--apas-white);
    border: 1.5px solid var(--apas-border);
    border-radius: var(--apas-radius);
    box-shadow: var(--apas-shadow-md);
    z-index: 200;
    max-height: 320px;
    overflow-y: auto;
}

.apas-search-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--apas-text);
    border-bottom: 0.5px solid var(--apas-border);
    transition: background 0.15s ease;
}

.apas-search-result:last-child { border-bottom: none; }
.apas-search-result:hover { background: var(--apas-purple-xlight); }

.apas-search-result__thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--apas-purple-light);
    flex-shrink: 0;
}

.apas-search-result__title {
    font-size: 13px;
    font-weight: 600;
    flex: 1;
}

.apas-search-result__cat {
    font-size: 10px;
    color: var(--apas-text3);
    margin-top: 2px;
}

.apas-search-empty {
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--apas-text3);
}

/* ── TRILHA COMECE AQUI ──────────────────────────────────────── */
.apas-trilha {
    background: linear-gradient(180deg, #f5f3ff 0%, var(--apas-bg) 100%);
    padding: 18px 0 20px;
    margin-bottom: 4px;
}

.apas-badge-inline {
    font-size: 10px;
    font-weight: 700;
    background: var(--apas-purple);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
}

.apas-trilha__desc {
    font-size: 13px;
    color: var(--apas-text2);
    padding: 0 18px;
    margin-bottom: 12px;
}

.apas-trilha__steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px;
}

.apas-trilha__step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--apas-white);
    border: 1.5px solid var(--apas-border);
    border-radius: var(--apas-radius);
    padding: 10px 14px;
    text-decoration: none;
    color: var(--apas-text);
    transition: all 0.2s ease;
}

.apas-trilha__step:hover {
    border-color: var(--apas-purple-mid);
    background: var(--apas-purple-xlight);
    transform: translateX(3px);
}

.apas-trilha__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--apas-purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.apas-trilha__thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--apas-purple-light);
    flex-shrink: 0;
}

.apas-trilha__thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.apas-trilha__info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.apas-trilha__step-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--apas-text);
    line-height: 1.3;
}

.apas-trilha__arrow {
    color: var(--apas-purple);
    font-size: 16px;
    font-weight: 700;
}
