/* --- Estilo Moderno para Filtros --- */
.mkr-filtros-container {
    background: linear-gradient(135deg, #2c82c9, #1a5f8b);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: white;
}

.mkr-filtros-title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
    color: white;
}

.mkr-filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.mkr-filtro-group input,
.mkr-filtro-group select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    transition: all 0.3s ease;
}

.mkr-filtro-group input:focus,
.mkr-filtro-group select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
    background: white;
}

.mkr-filtro-actions {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.mkr-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mkr-btn-filtrar {
    background: #27ae60;
    color: white;
}

.mkr-btn-filtrar:hover {
    background: #2ecc71;
    transform: translateY(-2px);
}

.mkr-btn-limpar {
    background: #ecf0f1;
    color: #34495e;
}

.mkr-btn-limpar:hover {
    background: #bdc3c7;
    transform: translateY(-2px);
}

.mkr-btn-criar {
    background: #e67e22;
    color: white;
    margin-left: auto;
}

.mkr-btn-criar:hover {
    background: #d35400;
    transform: translateY(-2px);
}

/* --- Cards de Trilhas Estilizados --- */
.mkr-trilhas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.mkr-trilha-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.mkr-trilha-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.mkr-trilha-header {
    height: 120px;
    background: linear-gradient(135deg, #2c82c9, #1a5f8b);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.mkr-trilha-title {
    font-size: 22px;
    font-weight: 700;
    padding: 0 20px;
    text-align: center;
    color: white;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -moz-box;
    -moz-line-clamp: 2;
    -moz-box-orient: vertical;
    display: box;
    line-clamp: 2;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mkr-trilha-body {
    padding: 20px;
}

.mkr-trilha-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.mkr-trilha-ciclo,
.mkr-trilha-paginas {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.mkr-trilha-ciclo::before {
    content: "🎯";
}

.mkr-trilha-paginas::before {
    content: "📖";
}

.mkr-trilha-link {
    display: block;
    text-align: center;
    background: #2c82c9;
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.mkr-trilha-link:hover {
    background: #1a5f8b;
    transform: translateY(-2px);
}

/* Responsividade */
@media (max-width: 768px) {
    .mkr-filtros-grid {
        grid-template-columns: 1fr;
    }
    
    .mkr-trilhas-grid {
        grid-template-columns: 1fr;
    }
    
    .mkr-filtro-actions {
        flex-direction: column;
    }
    
    .mkr-btn-criar {
        margin-left: 0;
    }
}

.mkr-trilha-meta .meta-line { display:block; margin-bottom: 2px; }
