/* Configurações Globais / Tema Escuro Estilo Asimov */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0b0f19;
    color: #e5e7eb;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    border-bottom: 1px solid #1f293d;
    padding: 20px 0;
    background-color: #0b0f19;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-login {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-register {
    background-color: #00d287;
    color: #0b0f19;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.btn-register:hover {
    background-color: #00b072;
}

/* Hero Section */
.hero-section {
    margin: 40px 0 30px;
}

.badge-content {
    color: #00d287;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-section h1 {
    font-size: 2.8rem;
    color: #ffffff;
    margin: 10px 0;
}

.hero-section p {
    color: #9ca3af;
    font-size: 1.1rem;
}

/* Barra de Filtros e Busca */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #1f293d;
    padding-bottom: 20px;
}

.categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: #1f293d;
    color: #ffffff;
}

.search-filter-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-box {
    background: #131b2e;
    border: 1px solid #1f293d;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 8px 14px;
    gap: 10px;
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    font-size: 0.95rem;
}

.btn-secondary {
    background: #131b2e;
    border: 1px solid #1f293d;
    color: #e5e7eb;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-text {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-weight: 600;
}

.tutorial-count {
    color: #9ca3af;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Grid de Tutoriais */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.tutorial-card {
    background-color: #131b2e;
    border: 1px solid #1f293d;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}

.tutorial-card:hover {
    transform: translateY(-4px);
    border-color: #00d287;
}

.card-body h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-body p {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /* Adicionado para calmar o linter do VS Code */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-level {
    display: inline-block;
    background-color: rgba(0, 210, 135, 0.1);
    color: #00d287;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #1f293d;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Botão Carregar Mais */
.load-more-container {
    text-align: center;
    margin-bottom: 80px;
}

.btn-load-more {
    background: transparent;
    border: 1px solid #1f293d;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-load-more:hover {
    background-color: #1f293d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    background-color: #0b0b0b;
    /* Ajuste para o tom de preto exato do seu site */
    overflow-x: hidden;
    /* Evita barras de rolagem lateral indesejadas */
}

/* --- FORÇAR HERO SECTION PARA CIMA E AUMENTAR TÍTULO --- */
.hero-section {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    margin-top: 0 !important;
    min-height: auto !important;
    /* Remove qualquer altura mínima padrão que esteja empurrando o texto pra baixo */
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.hero-section .hero-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-section h1 {
    font-size: 4.5rem !important;
    /* Tamanho do título bem maior */
    line-height: 1.1 !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}