/* assets/css/pages/home.css */

/* =========================================
   FORÇAR FUNDO DEEP SPACE (Igual ao Banco de Questões)
   ========================================= */
/* A classe abaixo é gerada automaticamente pelo WP baseada no nome do arquivo: page-home-metria.php */
body.page-template-page-home-metria {
    background-color: #020617 !important;
    min-height: 100vh;
    position: relative;
}

body.page-template-page-home-metria::before {
    content: "";
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: -10; 
    pointer-events: none;
    
    /* O Grid Pattern */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px; 
    
    /* A Vinheta (escurece as bordas) */
    mask-image: radial-gradient(circle at center top, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center top, black 30%, transparent 100%);
}/* assets/css/pages/home.css */

/* Wrapper que segura as variáveis locais para não poluir o global */
.home-content-wrapper {
    /* Cores Locais para garantir identidade da Home */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --cyan: #06b6d4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --bg-glass: rgba(15, 23, 42, 0.6);
    --border: rgba(255, 255, 255, 0.08);
    
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px;
    position: relative; 
    z-index: 1;
}

/* Tipografia de Ajuste Fino */
.home-content-wrapper h1, 
.home-content-wrapper h2, 
.home-content-wrapper h3 { letter-spacing: -0.02em; color: var(--text-main); }
.home-content-wrapper a { text-decoration: none; }

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    padding: 80px 0 100px; 
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.pill-badge {
    display: inline-block; 
    padding: 6px 14px; 
    border-radius: 6px;
    background: rgba(6, 182, 212, 0.08); 
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--cyan); 
    font-size: 0.75rem; 
    font-weight: 700;
    margin-bottom: 24px; 
    text-transform: uppercase; 
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 3.5rem; 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 20px; 
}
.hero-title .highlight {
    background: linear-gradient(90deg, #818cf8, #c084fc);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem; 
    color: var(--text-muted); 
    max-width: 650px; 
    margin: 0 auto 40px; 
    line-height: 1.6;
}

/* Botões */
.btn-wrapper { 
    display: flex; 
    gap: 15px; 
    justify-content: center; 
    margin-bottom: 60px; 
    flex-wrap: wrap; 
}

.btn-glow-primary {
    background: var(--primary); 
    color: white; 
    border: 1px solid var(--primary);
    padding: 12px 28px; 
    border-radius: 8px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.2s ease-out;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.2); 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 1rem;
}

.btn-glow-primary:hover { 
    background: var(--primary-hover); 
    border-color: var(--primary-hover);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3); 
    transform: translateY(-1px);
    color: white;
}

.btn-outline {
    background: transparent; 
    border: 1px solid var(--border); 
    color: var(--text-muted);
    padding: 12px 28px; 
    border-radius: 8px; 
    font-weight: 600; 
    transition: all 0.2s ease-out; 
    font-size: 1rem;
}
.btn-outline:hover { 
    border-color: rgba(255,255,255,0.3); 
    color: white; 
    background: rgba(255,255,255,0.02);
}

/* Stats Bar */
.stats-bar {
    display: inline-flex; 
    justify-content: center; 
    gap: 40px; 
    background: var(--bg-glass); 
    border: 1px solid var(--border);
    padding: 25px 40px; 
    border-radius: 12px; 
    backdrop-filter: blur(10px);
}
.stat-item { text-align: center; }
.stat-num { 
    display: block; 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: white; 
    line-height: 1; 
    margin-bottom: 6px; 
}
.stat-label { 
    font-size: 0.75rem; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    font-weight: 600;
}
.stat-sep { width: 1px; background: var(--border); height: 40px; }

/* =========================================
   TOOLS GRID SECTION
   ========================================= */
.tools-section { padding: 80px 0; }
.sec-title { text-align: center; margin-bottom: 60px; }
.sec-title h2 { font-size: 2.2rem; color: white; margin-bottom: 10px; font-weight: 700; }
.sec-title p { color: var(--text-muted); font-size: 1.1rem; }

.tools-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 24px;
}

.tool-card {
    background: var(--bg-glass); 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    padding: 32px; 
    transition: all 0.2s ease-out; 
    backdrop-filter: blur(10px);
    display: flex; 
    flex-direction: column; 
    position: relative; 
    overflow: hidden;
}

.tool-card:hover { 
    transform: translateY(-2px); 
    border-color: rgba(6, 182, 212, 0.4); 
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); 
    background: rgba(15, 23, 42, 0.8); 
}

.card-icon {
    width: 44px; 
    height: 44px; 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1.2rem; 
    margin-bottom: 20px; 
    transition: 0.2s;
}

/* Cores dos Ícones */
.icon-blue   { background: rgba(56, 189, 248, 0.1); color: #38bdf8; }
.icon-indigo { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.icon-amber  { background: rgba(251, 191, 36, 0.1);  color: #fbbf24; }
.icon-green  { background: rgba(52, 211, 153, 0.1);  color: #34d399; }
.icon-purple { background: rgba(168, 85, 247, 0.1);  color: #a855f7; } 
.icon-pink   { background: rgba(244, 114, 182, 0.1);  color: #f472b6; }

.tool-card h3 { color: white; font-size: 1.2rem; margin: 0 0 10px 0; font-weight: 700; }
.tool-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 24px; }

.card-arrow {
    margin-top: auto; 
    width: 32px; 
    height: 32px; 
    border-radius: 50%;
    border: 1px solid var(--border); 
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: var(--text-muted); 
    transition: 0.2s;
}
.tool-card:hover .card-arrow { 
    background: var(--cyan); 
    border-color: var(--cyan); 
    color: #000; 
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .stats-bar { flex-direction: column; width: 100%; gap: 20px; }
    .stat-sep { display: none; }
}