/* =============================================
   HOME AREA DE MEMBROS — estilo Netflix dark
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Remove header padrao do WordPress */
.ig-membros-body .site-header,
.ig-membros-body header.site-header,
.ig-membros-body .site-branding,
.ig-membros-body h1.site-title,
.ig-membros-body p.site-description,
.ig-membros-body #masthead { display: none !important; }

.ig-membros-body #page,
.ig-membros-body #content,
.ig-membros-body .site { background: transparent !important; padding: 0 !important; margin: 0 !important; }

.ig-membros-body {
    background: #0a0e17;
    color: #f0f4ff;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    min-height: 100vh;
}

/* =============================================
   HEADER
   ============================================= */
.ig-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 0 48px;
    height: 64px;
    display: flex;
    align-items: center;
}

.ig-header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ig-logo-img { height: 36px; width: auto; }
.ig-logo-txt {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a6fff;
    letter-spacing: -0.02em;
    text-decoration: none;
}

/* Nav central */
.ig-nav-central {
    display: flex;
    align-items: center;
    gap: 28px;
}

.ig-nav-link {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.ig-nav-link:hover,
.ig-nav-link.ativo {
    color: #fff;
    font-weight: 600;
}

/* Avatar e perfil */
.ig-perfil {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.ig-avatar {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #1a6fff;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.ig-perfil-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.ig-perfil-nome {
    font-size: 0.8rem;
    color: #f0f4ff;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ig-perfil-sair {
    font-size: 0.75rem;
    color: #8899bb;
    text-decoration: none;
    transition: color 0.2s;
}

.ig-perfil-sair:hover { color: #ff3d57; }

/* =============================================
   HERO BANNER
   ============================================= */
.ig-hero {
    position: relative;
    width: 100%;
    min-height: 520px;
    background: linear-gradient(135deg, #0a0e17 0%, #0d1a3a 50%, #0a1628 100%);
    display: flex;
    align-items: flex-end;
    padding: 0 48px 60px;
    overflow: hidden;
}

/* Efeito de grade no fundo */
.ig-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(26,111,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26,111,255,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

.ig-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0a0e17 0%, transparent 60%);
}

.ig-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.ig-hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #1a6fff;
    background: rgba(26,111,255,0.15);
    border: 1px solid rgba(26,111,255,0.3);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.ig-hero-titulo {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #f0f4ff;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.ig-hero-sub {
    font-size: 1rem;
    color: #8899bb;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 480px;
}

.ig-btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #1a6fff;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(26,111,255,0.4);
    transition: all 0.2s;
}
.ig-btn-hero:hover {
    background: #3d87ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(26,111,255,0.5);
    color: #fff;
}

/* =============================================
   CATALOGO DE ETAPAS E MODULOS
   ============================================= */
.ig-catalogo {
    padding: 0 48px 80px;
}

.ig-etapa-secao {
    margin-bottom: 48px;
}

.ig-etapa-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1e2d45;
}

.ig-etapa-nome {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f0f4ff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ig-etapa-count {
    font-size: 0.8rem;
    color: #4a5a7a;
}

/* Grid de cards */
.ig-modulos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* Card de modulo */
.ig-modulo-card { position: relative; }

.ig-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ig-card-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #111827;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #1e2d45;
    transition: border-color 0.2s, transform 0.2s;
}

.ig-modulo-card:hover .ig-card-thumb {
    border-color: #1a6fff;
    transform: scale(1.03);
}

.ig-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ig-card-thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111827, #1a2235);
}

.ig-card-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e2d45;
    letter-spacing: -0.04em;
}

.ig-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.ig-modulo-card:hover .ig-card-overlay { opacity: 1; }

.ig-play-btn {
    width: 48px;
    height: 48px;
    background: rgba(26,111,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 4px 16px rgba(26,111,255,0.5);
}

.ig-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(26,111,255,0.9);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 4px;
}

.ig-card-info { padding: 0 4px; }

.ig-card-titulo {
    font-size: 0.9rem;
    font-weight: 600;
    color: #c8d4f0;
    line-height: 1.3;
    margin-bottom: 4px;
}

.ig-card-aulas {
    font-size: 0.78rem;
    color: #4a5a7a;
}

/* Barra de progresso no card */
.ig-card-progresso {
    height: 3px;
    background: #1e2d45;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.ig-card-progresso-fill {
    height: 100%;
    background: #1a6fff;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.ig-card-progresso-fill.andamento {
    background: #ffc107;
}

/* Progresso no hero */
.ig-hero-progresso {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.ig-hero-progresso-barra {
    flex: 1;
    max-width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
}

.ig-hero-progresso-fill {
    height: 100%;
    background: #1a6fff;
    border-radius: 2px;
}

.ig-hero-progresso-txt {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
}

/* Laboratorio */
.ig-lab-placeholder {
    background: linear-gradient(135deg, #0a1628, #1a2235) !important;
}

.ig-lab-icon {
    font-size: 3rem;
    color: var(--ig-blue);
    opacity: 0.6;
}

/* =============================================
   FOOTER
   ============================================= */
.ig-footer {
    text-align: center;
    padding: 24px 48px;
    border-top: 1px solid #1e2d45;
    font-size: 0.8rem;
    color: #4a5a7a;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .ig-header { padding: 0 20px; }
    .ig-hero   { padding: 0 20px 48px; min-height: 400px; }
    .ig-catalogo { padding: 0 20px 60px; }

    .ig-modulos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ig-hero-titulo { font-size: 2rem; }
}

@media (max-width: 480px) {
    .ig-modulos-grid { grid-template-columns: 1fr; }
}
