/* ========== PÁGINA DE TUTORIAIS ========== */
.tutoriais-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Filtros */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 900px;
    margin: 0 auto;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.filter-select {
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: none;
    background: white;
    font-family: 'Roboto', sans-serif;
}

.search-box {
    display: flex;
    align-self: flex-end;
}

.search-box input {
    padding: 0.6rem 1rem;
    border-radius: 6px 0 0 6px;
    border: none;
    width: 250px;
}

.search-box button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

/* Grade de Tutoriais */
.tutoriais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.tutorial-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-badge {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
}

.card-badge span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-weight: 500;
}

.categoria {
    background: var(--primary-color);
    color: white;
}

.dificuldade {
    color: white;
}

.iniciante {
    background: #28a745;
}

.intermediario {
    background: #ffc107;
    color: var(--dark-color);
}

.avancado {
    background: #dc3545;
}

.tutorial-image-link {
    display: block;
    height: 200px;
    overflow: hidden;
}

.tutorial-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.tutorial-card:hover .tutorial-image-link img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-content h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.card-content h2 a {
    color: var(--dark-color);
}

.card-content h2 a:hover {
    color: var(--accent-color);
}

.excerpt {
    color: var(--gray-color);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.btn-tutorial {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-tutorial:hover {
    background: #e05a2b;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.page-nav, .page-number {
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.page-number {
    border: 1px solid #ddd;
}

.page-number:hover, .page-number.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-nav.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Newsletter */
.tutoriais-newsletter {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 4rem 0;
}

.tutoriais-newsletter i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.tutoriais-newsletter h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 1.5rem auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 50px 0 0 50px;
    font-family: 'Roboto', sans-serif;
}

.newsletter-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: var(--secondary-color);
}

/* Responsivo */
@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .tutoriais-grid {
        grid-template-columns: 1fr;
    }
}